Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Excel 2003
On my UserForm I have several CommandButtons. In my code, I want to refer to a selected or active one as a variable, rather than by it's name, say CommandButton4. So I store it's name:- Worksheets("MyVariables").Range("A4")=UserForm1.Ac tiveControl.Name (which works ok) and instead of UserForm1.CommandButton4.BackColor = ................. I would like to do:- UserForm1.Worksheets("MyVariables").Range("A4").Ba ckColor = .................. which doesn't work, as the synyax or method is wrong. Can it be done and if so how. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Passing variable values to userform control | Excel Discussion (Misc queries) | |||
Selecting control on userform with part of control name (set question) | Excel Programming | |||
Control Sequence from Userform Control | Excel Programming | |||
Problem with references to OCX control | Excel Programming | |||
External data references in a userform control | Excel Programming |