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)
 
Back
Top