macro1

  1. O

    VBA Code ignores some sheets

    Hey, guys, I'm using a macro do to some basic tasks. However, it keeps ignoring some of the worksheets. Any idea why? Sub Macro1() Dim w as worksheet Application.ScreenUpdating = False For Each w In Worksheets ActiveWindow.DisplayGridlines = False ActiveWindow.Zoom = 85...
  2. C

    Enter array formula to cell - over 255 characters - Error 1004 ArrayFormula VBA

    Hi all, I'm trying to put the below code to VBA and send it to cell A2 but it won't work. I had a look on Google that its over 255 characters so tried to split the code into two variables but would still not work. =IFERROR(INDEX('https://wels.sharepoint.com/sites/GroupSites7/blue/Talent/Shared...
  3. W

    clear slicer filter by clicking sliceritem

    Hi I hope someone can help me out with VBA for slicers. I have two slicers ("A" and "B") and I want both slicers to work when clicking on each of them. So when I click on a sliceritem (or multiple) in slicer "A" I want to clear the fitler on slicer "B", also working the other way around. I...
  4. F

    Recorded code - change inset default setting

    Code from the macro recorder is inset like this : Sub Macro1() Range("A2").Select End Sub Is it possible to have no inset when using the recorder? Like this : Sub Macro1() Range("A1").Select End Sub
  5. A

    <> don't work

    Hi For some reason, the below code don't work. It shows the error message even when all my filtered rows =base Thank you Option Explicit Sub Macro1() ' ' Macro1 Macro ' ' Dim base As Integer Dim c As Range base = InputBox("State base")...
  6. K

    Macro to create a chart

    I need to create lots of pie charts for a dashboard and was hoping to record a macro that I could run once I have selected the data. However the macro fails here: Sub Macro1() ' ' Macro1 Macro ' ' Keyboard Shortcut: Ctrl+z ' ActiveSheet.Shapes.AddChart.Select ActiveChart.ChartType =...
  7. B

    Macro calling macros then not running additional macros?

    So I have multiple macros to keep things clean. It may be extra macros but it help in case files change etc. I have a master 'CallMacros' macro assigned to a button Clicking this button, calls 11 macros, let's call them Macro1, Macro2, Macro3, etc. Each macro is: Workbooks.open (a...
  8. Y

    Add variable to pivot table code

    I want to add in a variable from pivot table using VBA. Please kindly advise me. Your help will be very much appreciated. Thanks you. Sub Macro1() ' ' Macro1 Macro ' ' Keyboard Shortcut: Ctrl+v ' cdcd = Worksheets("sheet8").Range("AQ2") With...
  9. P

    Macro to trigger another Macro

    Hi, I have a Macro (Macro1) which is created using the Macro recorder. Macro1 is used to do similar functions in each worksheet. I can actually go to each worksheet and run Macro1 but I have altogether 500 worksheets, which means I have to do 500 times. I'm thinking of creating another Macro...
  10. P

    Cell Value >0 then Run Macro

    Im trying to run some VBA and getting a Compile error stating Else without If My code is listed below Cant seem for the life of me what is wrong ... probably staring me in the face Range("C4").Select If Range("C4").Value > 0 Then Range("B4:G4").Select Call Macro1...
  11. JackDanIce

    Formatting issues when using [code] tags to post code to threads

    Hi, I use code tags to post code in threads aka Sub Macro1() 'Some code End Sub Usually, I write the code in the VBE to test, then copy and paste to the thread inside the code tags. Unfortunately, it seems to add extra "lines" in between the code, usually after Sub, which means I then edit...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top