Checkboxes in shared worksheets

C with no eyes

Board Regular
Joined
Nov 26, 2016
Messages
151
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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,216,773
Messages
6,132,625
Members
449,740
Latest member
tinkdrummer

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