Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protected Cell Problems
I have protection turned on and now cannot write to a protected cell with my
VBA code.. DateCompleted = Now() The cell addressed by DateCompleted works fine when the sheet is unprotected. When I run protected I get Run-time Error '1004' Application-defined or object-defined error The Cell does have conditional formating What am I doing wrong? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protected Cell Problems
maybe you need to use something like the following:
Worksheets("Sheet1").Protect userinterfaceonly:=True -- Gary Keramidas Excel 2003 "Bruce A. Julseth" wrote in message ... I have protection turned on and now cannot write to a protected cell with my VBA code.. DateCompleted = Now() The cell addressed by DateCompleted works fine when the sheet is unprotected. When I run protected I get Run-time Error '1004' Application-defined or object-defined error The Cell does have conditional formating What am I doing wrong? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protected Cell Problems
That seems to work. Thanks..
Bruce "Gary Keramidas" <GKeramidasAtMSN.com wrote in message ... maybe you need to use something like the following: Worksheets("Sheet1").Protect userinterfaceonly:=True -- Gary Keramidas Excel 2003 "Bruce A. Julseth" wrote in message ... I have protection turned on and now cannot write to a protected cell with my VBA code.. DateCompleted = Now() The cell addressed by DateCompleted works fine when the sheet is unprotected. When I run protected I get Run-time Error '1004' Application-defined or object-defined error The Cell does have conditional formating What am I doing wrong? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Problems with IRM protected files created before 18/11/09 | Excel Discussion (Misc queries) | |||
1004 Cell Protected Error for data validation lists when locked and protected | Excel Programming | |||
Strange problems with setting hidden property of a range when sheet protected with UserInterfaceOnly | Excel Programming | |||
Problems on Protected Sheet | Excel Programming | |||
problems w solution 4 enable AutoFilter for a protected worksheet | Excel Programming |