#1   Report Post  
 
Posts: n/a
Default Protection issues

Hello! I have an issue with protection, and I would appreciate any
solutions to my problem.

I have a number of worksheets in my workbook that allow for user input
(in a limited number of cells). I have a command button that will
reset certain values back to defaults. I want my worksheets to be
protected. I have made sure to make unprotected certain cells, command
buttons, text boxes and combo boxes. But I still have the issue that
when I try to reset my cells to defaults (this is done by a command
button), I get an error msg informing me the sheets are protected. Is
there some way I can manage to fix this? My worksheets need to be
protected. I thought I had handled this appropriately. Any ideas?

Thanks,
Julia

  #2   Report Post  
Fred
 
Posts: n/a
Default

Julia,

Wrap your button code in:
activesheet.unprotect
activesheet.protect

HTH

" wrote:

Hello! I have an issue with protection, and I would appreciate any
solutions to my problem.

I have a number of worksheets in my workbook that allow for user input
(in a limited number of cells). I have a command button that will
reset certain values back to defaults. I want my worksheets to be
protected. I have made sure to make unprotected certain cells, command
buttons, text boxes and combo boxes. But I still have the issue that
when I try to reset my cells to defaults (this is done by a command
button), I get an error msg informing me the sheets are protected. Is
there some way I can manage to fix this? My worksheets need to be
protected. I thought I had handled this appropriately. Any ideas?

Thanks,
Julia


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
Data validation, cell protection or other method? KG Excel Discussion (Misc queries) 5 June 17th 05 05:22 AM
Three levels of protection in one worksheet Erik Jahre Excel Worksheet Functions 1 April 19th 05 11:27 PM
workbook protection John New Users to Excel 1 January 22nd 05 12:55 PM
Seeking help for total worksheet protection Joseph Geretz Excel Discussion (Misc queries) 10 December 31st 04 06:48 PM
protection on excel forms cben Excel Worksheet Functions 1 December 14th 04 02:23 PM


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