PC Review


Reply
Thread Tools Rate Thread

cell validation on protected sheets

 
 
timp
Guest
Posts: n/a
 
      26th Feb 2008
I am trying to update cell data validation lists on a protected sheet. Using
protect/unprotect every time is cumbersome and difficult. So I am using
userinterfaceonly:=true so that the code can update protected sheets. But
this doesn't seem to allow it to update cell validation lists - I get the
familiar application-defined or object-defined error messsage. Suggestions
welcome. Thanks.
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      26th Feb 2008
There are somethings that can't be done by code even when you use the
UserInterfaceOnly parm.

You have to unprotect, do the work, and reprotect in those cases.

And you have one of those cases.

timp wrote:
>
> I am trying to update cell data validation lists on a protected sheet. Using
> protect/unprotect every time is cumbersome and difficult. So I am using
> userinterfaceonly:=true so that the code can update protected sheets. But
> this doesn't seem to allow it to update cell validation lists - I get the
> familiar application-defined or object-defined error messsage. Suggestions
> welcome. Thanks.


--

Dave Peterson
 
Reply With Quote
 
timp
Guest
Posts: n/a
 
      27th Feb 2008
Thank you Dave - meantime I simplified my protect/unprotect puzzle (turned
off events so that my event change sub wasn't calling itself repeatedly and
trying to make changes after it had finished once and turned protection back
on). Haven't completely cracked it yet but am hopeful.

"Dave Peterson" wrote:

> There are somethings that can't be done by code even when you use the
> UserInterfaceOnly parm.
>
> You have to unprotect, do the work, and reprotect in those cases.
>
> And you have one of those cases.
>
> timp wrote:
> >
> > I am trying to update cell data validation lists on a protected sheet. Using
> > protect/unprotect every time is cumbersome and difficult. So I am using
> > userinterfaceonly:=true so that the code can update protected sheets. But
> > this doesn't seem to allow it to update cell validation lists - I get the
> > familiar application-defined or object-defined error messsage. Suggestions
> > welcome. Thanks.

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Allow selection of Validation List in a Protected Cell Tonso Microsoft Excel Misc 1 14th Apr 2010 09:20 PM
1004 Cell Protected Error for data validation lists when locked and protected chris_j_adams@hotmail.com Microsoft Excel Programming 2 7th Nov 2006 10:07 AM
List, Data Validation, unlocked cell, protected sheet..... =?Utf-8?B?S2FuZQ==?= Microsoft Excel New Users 5 8th Jan 2005 10:39 PM
Copying cell formatting and data validation in protected worksheet =?Utf-8?B?TWF0aGlhcw==?= Microsoft Excel Misc 1 26th Nov 2003 12:03 AM
Re: validation lists and protected work sheets Tom Ogilvy Microsoft Excel Programming 0 12th Sep 2003 01:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:58 AM.