I have code I place in In Excel in a General Module with name Auto_Open.
When I hold the shift key down, it still runs. Is there a way to turn off
with VBA code?
Holding down Shift Key should prevent the code from running but will not
prevent the "this workbook contains macros" message.
Test with this in a new saved workbook.
Sub auto_open()
MsgBox "hello"
End Sub
Gord
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.