Hi guys,
I'm new to vba and I get this error when I try to process my codes: compile error: invalid outside procedure
Thank youPlease Login or Register to view this content.
Hi guys,
I'm new to vba and I get this error when I try to process my codes: compile error: invalid outside procedure
Thank youPlease Login or Register to view this content.
Last edited by 6StringJazzer; 05-18-2023 at 10:17 PM. Reason: please use code tags
Is the macro code located in the same workbook as Sheet3 ?
Surround your VBA code with CODE tags e.g.;
[CODE]your VBA code here[/CODE]
The # button in the forum editor will apply CODE tags around your selected text.
Yes it is !
What makes you think that routine is the cause?
Rory
The ''Sub Question5()'' is highlighted after the error pops up.
The code syntax itself is fine. Is there any other code in the module?
Here you go! thank you for your helpPlease Login or Register to view this content.
Last edited by 6StringJazzer; 05-18-2023 at 10:17 PM. Reason: please use code tags
Please use code tags when posting code.
There's nothing wrong with that code either. Perhaps you could post the workbook? (you can remove any data)
By the workbook, you mean the excel file ?
Yes, please.
Here it is.
Double click the Sheet1 object in the Project Explorer window and you will see that the number 4 has been typed in a blank module. Delete it.
Wow thank you very much, have a good day!
Glad to help.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks