K
Kevin McDonald
I want to put several ActiveX textbox controls on a word
document. I need to be able to reference them
dynamically. For example: I put 3 textbox controls on a
document. They are Textbox1, Textbox2, and Textbox3. I
would like use a For loop like so...
For x = 1 to 3
txtbox = "Textbox" + Trim(Str(x))
'here I would reference the textbox control
next x.
How do I reference the textbox control dynamically in VBA?
document. I need to be able to reference them
dynamically. For example: I put 3 textbox controls on a
document. They are Textbox1, Textbox2, and Textbox3. I
would like use a For loop like so...
For x = 1 to 3
txtbox = "Textbox" + Trim(Str(x))
'here I would reference the textbox control
next x.
How do I reference the textbox control dynamically in VBA?