"Remove protection" dialogue box shown while opening excel file

P

Per Johansson

I made an Excel file with some macros that write to locked cells in a
protected sheet, using UserInterfaceOnly at the top of every macro to
bypass the protection. One macro, setting default values, is run on
opening the Worksheet.

Now the user says that the dialogue box "Remove sheet protection" is
always shown when he opens the file. That doesn't happen here. What
could be the cause of that behaviour?
 
T

Tom Ogilvy

In Excel 2002 and later, the UserInterfaceOnly setting requires you to
provide the password. In earlier versions it didn't. Just a guess, but
perhaps this is the source of the problem.
 
P

Per Johansson

In Excel 2002 and later, the UserInterfaceOnly setting requires you to
provide the password. In earlier versions it didn't. Just a guess, but
perhaps this is the source of the problem.

Thank you.
I added the password parameter to the macros and sent the file to the
user, so I hope there are no other pitfalls. There's a document about
programming "What's new in Excel 2002" but I can't find anything about
what's changed, other than the UserInterfaceOnly setting.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top