UserInterfaceOnly not being recognised

J

jillc

I add the following code into a workbook_open sub

Worksheets("DataInputSheet").Protect userinterfaceonly:=True

the phrase 'userinterfaceonly' does not capitalise as expected, and the
macros do not work as expected. Is my syntax wrong?
 
J

Jon Peltier

These named parameters do not autocapitalize.

I find that some things do not work unless the sheet is truly unprotected.
The UI Only setting doesn't seem to work. It may vary on Excel version.

- Jon
 
J

Jim Rech

The UI Only setting doesn't seem to work.

I find it works "most of the time". I slap it on, see what chokes, and put
unprotect/protects around them.
 
J

Jon Peltier

I meant to say "The UI Only setting doesn't always work." I do the same
check as you, and wrap the broken code with un/protect.

- Jon
 

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