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
 
S

Simon Lloyd

Amnon said:
Hi
I have a code that by clicking on any cell on the spreadsheet passe
th
information to predefined cell
The problem is that when I protect the spreadsheet, the code doesn'
work
Any solution
Thanks
Amno
When which sheet is protected, the source or the destination

--
Simon Lloy

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

Simon Lloyd

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
**********

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


--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
 
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

Top