Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I turn protection on/off with Combo boxes

I am using the "_change()" state of a combo box to make changes in
cell shading and locked status of various ranges.

I need to unprotect the worksheet for the changes to be made and
protect it afterward.

I tried using the "_GotFocus()" and "_LostFocus()" states with
ActiveSheet.Protect and ActiveSheet.UnProtect. They work fine but
when I close the file I get multiple "runtime 1004" errors for either
the cell shading or the locked status. It appears to be an issue with
the protection because when I turn off the protection there are no
problems.

What is the best way to unprotect and protect a worksheet with combo
boxes?

Thanks,
Peter
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How do I turn protection on/off with Combo boxes

I would break the ListFillRange of the combobox and fill it using code
instead. Probably likewise with the linkedcell property - manage it with
code.

--
Regards,
Tom Ogilvy
"P. Graven" wrote in message
om...
I am using the "_change()" state of a combo box to make changes in
cell shading and locked status of various ranges.

I need to unprotect the worksheet for the changes to be made and
protect it afterward.

I tried using the "_GotFocus()" and "_LostFocus()" states with
ActiveSheet.Protect and ActiveSheet.UnProtect. They work fine but
when I close the file I get multiple "runtime 1004" errors for either
the cell shading or the locked status. It appears to be an issue with
the protection because when I turn off the protection there are no
problems.

What is the best way to unprotect and protect a worksheet with combo
boxes?

Thanks,
Peter



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Combo boxes to change options based on other Combo boxes. Ancient Wolf New Users to Excel 1 March 27th 09 06:29 PM
Selecting subsets using combo boxes or list boxes CLamar Excel Discussion (Misc queries) 0 June 1st 06 07:43 PM
Questions on combo boxes and list boxes. Marc New Users to Excel 1 March 14th 06 09:40 AM
Combo boxes and Protection [email protected] Excel Discussion (Misc queries) 0 June 27th 05 03:40 PM
List boxes/combo boxes Tibow Excel Programming 3 February 17th 04 12:35 PM


All times are GMT +1. The time now is 11:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"