Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password prompt for VBA project appears after Excel quits

Status
Not open for further replies.

quick62silver

IS-IT--Management
Jan 14, 2009
4
US
I have been working on VBA code for an Excel spreadsheet. During this coding effort I password protected the VBA code. Since I have password protected the VBA code I get prompted to enter the password for it several times when I exit the spreadsheet. If I do nothing in the spreadsheet and just exit it does not usually happen. This usually happens if I do an activity which involves opening up a userform and perform an operation. Obviously I do not want to release this spreadsheet to the users with this situation nor do I want to not have a password on the VBA code either.

I have been reading about this and some people mention it is because the Google toolbar is installed on the computer. I do not have this issue so it is something else.

Please advise.
 
Everyone,

As a followup I did do further testing. First, the file is saved as an .xls as some people are using Excel 2003 and others are using Excel 2007. I had someone using 2003, open it, make changes and then close it and it did not prompt them for the VBA password. Using the same file I opened it in 2007 and made similar changes. When closing the spreadsheet it did prompt me for a password. After hitting the enter key 5 times it stopped prompting me.

Can anyone please advise as to why and how I might be able to resolve this issue.
 
You'd have to post the code.
Maybe something going on with a Workbook_Close() block?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top