Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Control ComboBoxes & Worksheet Protection


Hi,

I have been creating a user form whereby the user selects a record from
a combo box. Once they have made a selection I have a macro that
highlights cells on the same worksheet. The worksheet is protected, so
I would like, via use of the OnChange Event(or something else) for the
worksheet to unprotect, change the highlighted cells, then reprotect
leaving the user with no access to the sheet other than to view it.

I have tried an array of Macros none seem to work. They work on a sheet
where the combobox is missing, i think this could be the problem, but
can not find away around it.

Any ideas?

Many Thanks


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Control ComboBoxes & Worksheet Protection

If you are using a form, then add this to the top of your command button
click_event code.
Sheetname.Unprotect "password"
the rest of your code
then at the end add:
Sheetname.Protect "password"
HTH
"ChrisF" wrote in message
...

Hi,

I have been creating a user form whereby the user selects a record from
a combo box. Once they have made a selection I have a macro that
highlights cells on the same worksheet. The worksheet is protected, so
I would like, via use of the OnChange Event(or something else) for the
worksheet to unprotect, change the highlighted cells, then reprotect
leaving the user with no access to the sheet other than to view it.

I have tried an array of Macros none seem to work. They work on a sheet
where the combobox is missing, i think this could be the problem, but
can not find away around it.

Any ideas?

Many Thanks


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/



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
comboboxes [email protected] uk Excel Discussion (Misc queries) 1 December 6th 09 05:07 PM
Comboboxes mr-bear New Users to Excel 1 November 21st 06 10:05 AM
Cell Protection vs. Worksheet Protection kmwhitt Excel Discussion (Misc queries) 4 September 24th 06 02:37 AM
Worksheet protection is gone and only wokbook protection can be se Eric C. Excel Discussion (Misc queries) 4 May 2nd 06 04:50 PM
Need help with ComboBoxes. rosemary New Users to Excel 2 July 9th 05 12:19 AM


All times are GMT +1. The time now is 01:38 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"