I'm not 100% sure if this is possible but, what I'm trying to do is have one sheet, read the value of a cell that will correspond with the name of the check box in a different workbook and tick that check box.
So far my code is
When I run it I get a run-time error "Unable to get the CheckBoxes property of the Worksheet Class" and quite frankly I have no idea of what that means...
I've tried it with both ActiveX and basic Form
With ActiveX it works if I have :
ActiveSheet.CheckBoxE550.Value = True
But that doesn't allow me to have a dynamicly named as ff.value = True causes an error.
IN SHORT
Is there a way to Dim something as the name of an activeX Check box, or a way to tick standard form check boxes with code in a different workbook?
So far my code is
Code:
Private Sub CreateTicks_Click()
Dim f As String
Dim ff As String
f = Range("AF548").Value
ff = "Checkbox" & f
Workbooks.Open Filename:=ThisWorkbook.Path & "Othersheet.xlsm"
Windows("Othersheet.xlsm").Activate
ActiveSheet.CheckBoxes(ff).Value = xlOn
End Sub
When I run it I get a run-time error "Unable to get the CheckBoxes property of the Worksheet Class" and quite frankly I have no idea of what that means...
I've tried it with both ActiveX and basic Form
With ActiveX it works if I have :
ActiveSheet.CheckBoxE550.Value = True
But that doesn't allow me to have a dynamicly named as ff.value = True causes an error.
IN SHORT
Is there a way to Dim something as the name of an activeX Check box, or a way to tick standard form check boxes with code in a different workbook?