Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Protecting & Unprotecting worksheet

Hi,
I have a worksheet that when the user checks a certain checkbox certain rows
and checkboxes are hidden. This sheet needs to be protected, but when I
protect the sheet and click on the checkbox I get an error in the code that
hides the rows. Works fine when the sheet is not protected. Any ideas???


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 417
Default Protecting & Unprotecting worksheet

Tammy wrote:
<<...when I protect the sheet and click on the checkbox I get an error
in the code that hides the rows.

You probably will have to unprotect the worksheet before trying to hide
or unhide the rows. Protect the worksheet the very last thing.

Please post your code, if you need more specific help (as always in this
newsgroup).
--
Regards,
Bill Renaud



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Protecting & Unprotecting worksheet

You need to use the Unprotect method of the Worksheet at the begining of
your code and the Protect method at the end.
As the password will appear in the code, you will need to "Lock project for
viewing" if not already done.


"Tammy H" wrote in message
...
Hi,
I have a worksheet that when the user checks a certain checkbox certain
rows
and checkboxes are hidden. This sheet needs to be protected, but when I
protect the sheet and click on the checkbox I get an error in the code
that
hides the rows. Works fine when the sheet is not protected. Any ideas???


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Protecting & Unprotecting worksheet

I was able to use the Unprotect and protect methods.

Thanks for everyones help. I can always count on this group.

Tammy

"Alain Vaillancourt" wrote:

You need to use the Unprotect method of the Worksheet at the begining of
your code and the Protect method at the end.
As the password will appear in the code, you will need to "Lock project for
viewing" if not already done.


"Tammy H" wrote in message
...
Hi,
I have a worksheet that when the user checks a certain checkbox certain
rows
and checkboxes are hidden. This sheet needs to be protected, but when I
protect the sheet and click on the checkbox I get an error in the code
that
hides the rows. Works fine when the sheet is not protected. Any ideas???



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
protecting and unprotecting Fusion1337 Excel Worksheet Functions 5 September 26th 08 04:03 PM
Protecting & Unprotecting Sheets Pete[_4_] Excel Programming 5 May 10th 05 09:43 PM
PROTECTING/UNPROTECTING SHEETS Maureen Excel Discussion (Misc queries) 1 January 6th 05 06:46 PM
Protecting/Unprotecting Workbook Sonny Maou Excel Programming 4 February 18th 04 04:59 PM
Protecting & unprotecting worksheets pkley Excel Programming 1 January 7th 04 10:28 PM


All times are GMT +1. The time now is 02:58 PM.

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

About Us

"It's about Microsoft Excel"