ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   protected linked cell (https://www.excelbanter.com/excel-programming/403673-protected-linked-cell.html)

ranswert

protected linked cell
 
I have a checkbox linked to a protected cell so I can't change the value in
it. How do i get it to work without unlocking it? I don't want it to be
selected when sheet is protected.

Per Jessen

protected linked cell
 

"ranswert" skrev i en meddelelse
...
I have a checkbox linked to a protected cell so I can't change the value in
it. How do i get it to work without unlocking it? I don't want it to be
selected when sheet is protected.


Hi

Unprotect the sheet from the macro, pass the value, then protect the sheet
again.

sheets(1).unprotect Password:="Pass"
range("A1").value=me.checkbox1.value
sheets(1).protect Password:="Pass", DrawingObjects:=True, Contents:=True,
Scenarios:=True

//Per



ranswert

protected linked cell
 
Is there another way to do this without having to protect and unprotect the
sheet each time the checkbox is checked.

"Per Jessen" wrote:


"ranswert" skrev i en meddelelse
...
I have a checkbox linked to a protected cell so I can't change the value in
it. How do i get it to work without unlocking it? I don't want it to be
selected when sheet is protected.


Hi

Unprotect the sheet from the macro, pass the value, then protect the sheet
again.

sheets(1).unprotect Password:="Pass"
range("A1").value=me.checkbox1.value
sheets(1).protect Password:="Pass", DrawingObjects:=True, Contents:=True,
Scenarios:=True

//Per





All times are GMT +1. The time now is 02:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com