Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / December 2007

Tip: Looking for answers? Try searching our database.

UserInterfaceOnly not being recognised

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jillc - 13 Dec 2007 14:01 GMT
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?
Signature

Thanks in advance, Jill C

Jon Peltier - 13 Dec 2007 14:21 GMT
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
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______

>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?
Jim Rech - 13 Dec 2007 14:52 GMT
>>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.

Signature

Jim

> These named parameters do not autocapitalize.
>
[quoted text clipped - 14 lines]
>> the phrase 'userinterfaceonly' does not capitalise as expected, and the
>> macros do not work as expected.  Is my syntax wrong?
Jon Peltier - 13 Dec 2007 18:14 GMT
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
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______

>>>The UI Only setting doesn't seem to work.
>
[quoted text clipped - 20 lines]
>>> the phrase 'userinterfaceonly' does not capitalise as expected, and the
>>> macros do not work as expected.  Is my syntax wrong?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.