Hi,
I am not very Excel savvy but have managed to get my way around most functions and I'm learning very quickly!
I need help with creating a VBA/Marco that can call functions from other worksheets, if that is at all possible?
I currently have a workbook which contain several checkboxes. On each worksheet I have already made a 'Select All' and 'Unselect All' button using VBA that checks and unchecks all check boxes on the worksheet in question.
The VBA I used for checking all boxes are:
Formula:
Sub CheckAll()
Dim cb As CheckBox
If ActiveSheet.CheckBoxes("Check Box 1").Value Then
For Each cb In ActiveSheet.CheckBoxes
If cb.Name <> ActiveSheet.CheckBoxes("Check Box 1").Name Then
cb.Value = True
End If
Next cb
End If
End Sub
And the VBA I used to deselect all check boxes are:
Formula:
Sub UncheckAll()
Dim cb As CheckBox
If ActiveSheet.CheckBoxes("Check Box 1").Value Then
For Each cb In ActiveSheet.CheckBoxes
If cb.Name <> ActiveSheet.CheckBoxes("Check Box 1").Name Then
cb.Value = False
End If
Next cb
End If
End Sub
I am now working on creating a summary page and was wondering if I could create a VBA function that would allow me to check and uncheck boxes from ALL worksheets, or at least activate the check/uncheck boxes for each worksheet?
Hope this makes some sense
Thanks,
Chris
Bookmarks