Checkboxes in shared worksheets

C with no eyes

Board Regular
Joined
Nov 26, 2016
Messages
152
I have used the form control checkbox in a shared workbook.

The checkbox is on an 'input' sheet. When a macro on the 'input' sheet is run, the data is then copied to the bottom of the 'record' sheet then all unlocked cells and checkboxes are cleared so the 'input' sheet can be used again.

It works when the sheet is locked but it doesn't work when the sheet is shared (when other users are allowed to make changes).

I am getting a run time error:
'2147024809 (80070057)' requested shapes are locked for selection.

It falters at this point:
Code:
    ActiveSheet.Shapes.Range(Array("Check Box 1")).Select    With Selection
        .Value = xlOff
        .LinkedCell = "Workings!$P$3"
        .Display3DShading = False
    End With
(I know this because it does all of the actions before this point)

Does anyone have any suggestions?

I have found:
Code:
[COLOR=#000000][FONT=Courier]    ActiveSheet.Unprotect Password:="password"[/FONT][/COLOR][COLOR=#000000][FONT=Courier]    ...OTHER STUFF...
[/FONT][/COLOR][COLOR=#000000][FONT=Courier]    ActiveSheet.Protect  Contents:=True, Password:="password"[/FONT][/COLOR]
(No, this isn't actually the password!)
Does this work in a shared sheet?

But I would rather have something like:
Code:
ActiveSheet.Shapes.Range(Array("Check Box 1")).Value = xlOff

Thanks.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,223,893
Messages
6,175,241
Members
452,622
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top