1004 compile error

  1. A

    Worksheets(x).Select Error

    Hi, I am trying to select multiple sheets using the following code. Dim x As Integer ThisWorkbook.Worksheets(3).Select For x = 3 To ThisWorkbook.Worksheets.count Worksheets(x).Select (False) Next x Although it is a common code it does not work with the later versions...
  2. opazzo

    Can't find what's wrong with this VBA code - Runtime Error 1004

    Hi there, I keep getting a Application defined or Object defined error on this piece of code, but can't see what's wrong. Have tried a few things but I feel i need a set a fresh eyes to look at it. Here is the code : Dim LastRow As Long Dim WB As Workbook Dim SPFWB As String Dim SPFWS As...
  3. L

    Calling a Macro from a Different WorkBook

    I have tried all the different versions I have seen on the boards, and still am getting a Compile Error: Expected End of Statement error. Here is the setup File 1: Macros.xlsm - which has macros in it to be run on other files File 2: TG.xls - which I want to run the macros on. [yes...

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