JTL9161
Well-known Member
- Joined
- Aug 29, 2012
- Messages
- 593
- Office Version
- 365
- Platform
- Windows
I have the below macro in the workbook startup to ask if I want to run the macro in the workbook.
Private Sub Workbook_Open()
CarryOn = MsgBox("Do you want to run the Macro?", vbYesNo)
If CarryOn = vbYes Then
Application.Run Macro:="holding2"
End If
End Sub
After I click "YES" it tells me the macro is not available. Its a separate module in the same spreadsheet. Is there another way to run it or do I need to move all my code over to the workbook startup and all under the msg book question code?
Thanks
James
Private Sub Workbook_Open()
CarryOn = MsgBox("Do you want to run the Macro?", vbYesNo)
If CarryOn = vbYes Then
Application.Run Macro:="holding2"
End If
End Sub
After I click "YES" it tells me the macro is not available. Its a separate module in the same spreadsheet. Is there another way to run it or do I need to move all my code over to the workbook startup and all under the msg book question code?
Thanks
James