Here is what I want to do:

When I click on a command button, I want to assign the component object Command1 to a variable and then use it by the variable name.

Like this:

C1 = Command1

and then say:

C1.caption = "Click Here"

Can someone give me an example of how to do this? I tried assigning C1 as Object and say C1 = Command1 but that does not work.

Thanks in advance for your help!