Activate cell in protection mode

  • Thread starter Thread starter Amnon Wilensky
  • Start date Start date
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
 
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

Back
Top