Oops!
I have created a workbook with a macro that automatically fires upon opening the workbook. The macro does it’s thing, then quits Excel. Excel security is set to medium, which would always produce the macro security dialog box, where I could disable macros if I didn’t want it to fire. Well, I created a digital certificate (using selfcert) and signed the macro.
Now when I open the workbook, the macro runs and closes Excel automatically (like I wanted it to). However, the old “hold shift key while opening” trick doesn’t do it’s, huh, trick. It doesn’t keep the macro from firing. I do not seem to have access to make any changes to this workbook. This would be bad.
Someone please tell me that there’s a simple thing I’ve overlooked
On a related note, is there a command line argument that will allow me to run a macro at startup (besides the Workbook_Open procedure)? Access has such a feature, but couldn’t find anything similar in Excel.