sbendbuckeye
Active Member
- Joined
- Nov 26, 2003
- Messages
- 440
Hello All,
I am creating a series of CheckBoxes in worksheet based on user actions using this command:
I want to use a generic CheckBox_Click method to handle all of the associated CheckBox events, but I can't find anything to tell me which one has been clicked when the method is called at run time.
There is a parameter property but I am not sure if or how I can use it in this scenario. Am I missing something obvious here? Thanks in advance for any ideas and/or suggestions!
I am creating a series of CheckBoxes in worksheet based on user actions using this command:
Code:
' strAddress, lngLeft and lngTop are all calculated variables.
With Sheet1.Shapes.AddFormControl(xlCheckBox, lngLeft, lngTop, 10, 10)
With .DrawingObject
.Caption = vbNullString
.LinkedCell = strAddress
End With
.Name = "chk" & UCase$(strAddress)
.OnAction = "CheckBox_Click"
End With
There is a parameter property but I am not sure if or how I can use it in this scenario. Am I missing something obvious here? Thanks in advance for any ideas and/or suggestions!