I have a spreadsheet which has a userform that opens up upon opening the spreadsheet if it is a new project. When i get ready to send it to others, i check the lock project for viewing box in the vba editor and give it a password. I then close the file and open it up. I get a runtime error 7 can not find specified object every time when the locked project box is checked. It will stop on the frmOpen.show line. Stepping through or even clicking run on this line, will allow the code to complete without incident and the form to open like it is supposed to without error.
If i uncheck the lock project for viewing box, save, close and reopen the file, it runs without a problem.
I have gone through the initializing code for the form and can not find any apparent errors such as referencing missing controls etc.
Any suggestion is welcome.
Thanks,
Jim
If i uncheck the lock project for viewing box, save, close and reopen the file, it runs without a problem.
I have gone through the initializing code for the form and can not find any apparent errors such as referencing missing controls etc.
Any suggestion is welcome.
Thanks,
Jim