View Single Post
 
Old 05-31-2014, 02:10 PM
NobodysPerfect NobodysPerfect is offline Windows 7 64bit Office 2010 32bit
Competent Performer
 
Join Date: Jan 2014
Location: Germany
Posts: 136
NobodysPerfect is on a distinguished road
Default

Quote:
I think I'd try passing the checkbox object itself
If that means a

Code:
Private Sub CB1a_Click
    Call DoWithBox "CB1a"
Sub
with a manually typed 'Call DoWithBox "CB_1a"' included, then that's exactly what I would not like to do. Passing the name in this way, I'd have to change each Private _Click sub if (for what ever reason) I have to rename my check boxes.

I'd like to use the same code for each check box, sth. like 'Call DoWithBox CheckBox.Name'

Any other idea
NP
Reply With Quote