Hi All and Merry Christmas!
I have inserted some vb code into my workbook that limits the scroll area on all worksheets with no problems. However, as I intend to distribute this workbook, it was my understanding that the user would see a pop up asking to enable macros when you opened an (.xlsm) file. I emailed this file to myself last night, and when I arrived to work and opened this file, no mention of security popped up. So I continued to see if the vb code I implanted was still working, and it was not. So I went to Macro Security, and saw that it was set to disable all macros. I enabled macros, saved, closed, reopened the file, and then the vb code worked.
To reiterate, the problem I have with this, is when an unknown user in the agency receives this file, they will not know to enable macros. Is there anyone that has code or any idea on how to disable use of this workbook until the macro security has been enabled? Otherwise, my scroll areas will never be locked. For those that don't know, when you set your scroll area in the VB Editor (properties), this works just fine when the file is still open. However, when you close this file and reopen it, the scroll area you wanted will be gone. This is why I used some vb code to stop this. But now today, I learn that this is still not working because the user (has to know) to enable macros. So I need the workbook to tell the user, sorry charlie, will not work for you until you enable macros first, with a big tongue sticking out. Thanks!
Bookmarks