melodramatic
Board Regular
- Joined
- Apr 28, 2003
- Messages
- 187
- Office Version
- 365
- Platform
- Windows
I have a macro that opens up a file of forms, makes customizations, and saves each worksheet in that file as it's own form in the new project. It works great (self pat on the back here), EXCEPT that I have users complain that they have to hit the Read-Only button. Obviously, having to wait the extra 10 seconds for the macro to pull the file up before hitting read only is 10 seconds totally wasted. They NEED to hit the macro button then wander off to the coffee room.
Cough cough ... now that I'm past the grrr point...
The "Forms for Macro" file has been saved with a password to modify. I don't need any users going in an messing with the coding in that file. How do I set the Workbooks.Open so that it doesn't prompt them for the password, but instead just opens the file read only?
Thanks so much for helping!
Cough cough ... now that I'm past the grrr point...
The "Forms for Macro" file has been saved with a password to modify. I don't need any users going in an messing with the coding in that file. How do I set the Workbooks.Open so that it doesn't prompt them for the password, but instead just opens the file read only?
Thanks so much for helping!
Code:
Sub CompleteForms()
Application.ScreenUpdating = False
Application.DisplayAlerts = False
Workbooks.Open Filename:= "P:\LAB\TESTING PROJECTS\MACRO\Forms for Macro.xlsx"
Sheets("List").Select