Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
CNP CNP is offline
Junior Member
 
Posts: 2
Default Conditional Formatting & Protected Ranges disappear after running macro

I have conditional formatting and protected ranges set up in an Excel 2003 workbook. When I run a particular macro, the conditional formatting and protected ranges disappear after the macro is done running. The conditional formatting is completely gone and the entire workbook becomes protected.

The line in the VB code related to the protection is:
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True

But I don’t think anywhere in the code references the conditional formatting. Please help!!
  #2   Report Post  
CNP CNP is offline
Junior Member
 
Posts: 2
Default

I have figured out the conditional formatting error (I had a range that was copied and pasted into another range- I formatted the destination cells instead of the first range that was being copied), but still cannot understand the protected ranges issue. Could it be the same reason? I only want certain months to be unlocked and the cells that get copied/pasted affect all 12 months. Thanks!

Quote:
Originally Posted by CNP View Post
I have conditional formatting and protected ranges set up in an Excel 2003 workbook. When I run a particular macro, the conditional formatting and protected ranges disappear after the macro is done running. The conditional formatting is completely gone and the entire workbook becomes protected.

The line in the VB code related to the protection is:
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True

But I don’t think anywhere in the code references the conditional formatting. Please help!!
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
Conditional Formatting Colors have disappear on my laptop. jester97404 Excel Worksheet Functions 0 December 13th 06 07:10 PM
Running a macro from a conditional formula Jim Excel Discussion (Misc queries) 1 July 27th 06 01:34 AM
If I have my sheets protected will that prevent me running a macro to hide certain sells? Marc Excel Worksheet Functions 0 May 17th 06 11:36 PM
Conditional Formatting - date ranges Angela Excel Discussion (Misc queries) 3 November 2nd 05 03:36 PM
Ranges within Conditional Formatting Ryno Excel Discussion (Misc queries) 4 December 14th 04 12:47 AM


All times are GMT +1. The time now is 09:34 PM.

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"