I have added n Check Boxes to my Spreadsheet.
I need to be able to call procedures when one has it's value changed.
How do I reference a controls Click/Change event when it was added with code?
Could anyone help me out with this?
Printable View
I have added n Check Boxes to my Spreadsheet.
I need to be able to call procedures when one has it's value changed.
How do I reference a controls Click/Change event when it was added with code?
Could anyone help me out with this?
Create a Module with the procedure you want to fire on any action.
In your Module trap the callerCode:Selection.OnAction = "Module1.IPClick"
Code:For Each myCheckBox in ActiveSheet.CheckBoxes
If myCheckBox.Name = Application.Caller then ...
Next