LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Protection error when running VB code


I have a protected workbook with several protected sheets. I have
written VB code tied to various buttons and drop down which mainly hide
and show various rows in the sheets. Everytime a function or sub is run
they unprotect the workbook and sheets, run the code, then protect
everything once completed, however when I click on the checkboxes and
drop downs that I am using I get an error stating the the cell or sheet
is protected and they need t obe unprotected first, however if I click
OK all my code runs and everything is fine.

Is there a way to not have the protection error dialog pop-up everytime
I click a control?

The error pops up before it even gets into the VB code, so I am sure
there is nothing wrong with the code. It just annoying to click on the
dialog everytime.


--
mrossman04
------------------------------------------------------------------------
mrossman04's Profile: http://www.excelforum.com/member.php...o&userid=31345
View this thread: http://www.excelforum.com/showthread...hreadid=510342

 
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
Please Help Error 400 when running tested code Ditto Excel Discussion (Misc queries) 5 October 15th 07 01:24 PM
VBA code error with Protection turned on - help please Fred Excel Discussion (Misc queries) 1 March 17th 06 04:06 PM
Error when closing workbooks after running .net code Stefan Hojnowski Excel Programming 1 August 6th 05 04:16 AM
Error Message When running code but not stepping through it. Jared Excel Programming 4 November 16th 04 07:09 PM
VBA code delete code but ask for password and unlock VBA protection WashoeJeff Excel Programming 0 January 27th 04 07:07 AM


All times are GMT +1. The time now is 08:43 AM.

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"