.cells4

  1. U

    Compile error: Variable not defined??

    Dear All, I run the following code script, then I get an error: "Variable not Defined. What could be the issue, is there an explanation to what is the correct variable not set in the script code? [CODE:] Sub ListSheetNamesInNewWorkbook() Dim wb As Workbook: Set wb = ThisWorkbook...
  2. D

    Can a user form be part of a macro?

    I have a commandbutton in my spreadsheet, that asks users to choose Yes or No. When Yes is clicked, a macro is called Here is my code to do that (I think this code is ok): Private Sub CommandButton1_Click() Dim Answer As VbMsgBoxResult Answer = MsgBox("Existing data will be cleared. Are...
  3. D

    Cannot resolve subscript error excel vba

    Have searched the forum, online etc but cannot work out why I am getting "Subscript out of Range" error in the below code. The error is in this line With Worksheets("Journal") The rest of the with (which forms part of the rest of the code, but this is where the debugger shows the error) Sub...

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