Activate cell in protection mode

A

Amnon Wilensky

Hi,
I have a code that by clicking on any cell on the spreadsheet passes the
information to predefined cell.
The problem is that when I protect the spreadsheet, the code doesn't work.
Any solution?
Thanks,
Amnon
 
A

Amnon Wilensky

Thanks,
Amnon

Simon Lloyd said:
Then if your sheet is just a point and click you could use this in the
worksheet code module:
**********
Private Sub Worksheet_SelectionChange(ByVal Target As
Range)
Me.Unprotect Password:="mypassword"
'YOUR CODE TO MOVE DATA TO CELL
Me.Protect Password:="mypassword"
End Sub
**********




--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
 

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

Similar Threads

Passing data to fix cell 4
Reverse string on multiply cells 3
Twin cells 5
Activating object from Excel cell 2
Painting blank cells 4
Painting equal cells 2
Ignoring empty cells 6
Stop zero on cell 6

Top