Setting protected cell

  • Thread starter Bruce A. Julseth
  • Start date
B

Bruce A. Julseth

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?
 
P

Pegasus [MVP]

Bruce A. Julseth said:
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?

Posting in the wrong newsgroup. I would ask the experts in an Excel
newsgroup and mention the version of Excel you run.
 
B

Bruce A. Julseth

Pegasus said:
Posting in the wrong newsgroup. I would ask the experts in an Excel
newsgroup and mention the version of Excel you run.

Yah. Sorry..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top