Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating and using textboxes runtime

Status
Not open for further replies.

yk01

Programmer
Dec 18, 2001
2
CA
Does anybody know, how I can create a userform with textboxes at runtime (not designtime), and how I can finally read (variables) and process the text the user types into the boxes?

I would be happy about any answer I get because the way I tried doing the mentioned task is causing big problems.
 
Hi,
I don't think that there is a way to add controls to a userform at run time. Controls can be added to a worksheet at run time.

The general form of accessing data from textboxes is ...
Code:
    With UserForm1
        sVariable1 = .TextBox1
        sVariable2 = .TextBox2
'-- etc
    End With
:) Skip,
metzgsk@voughtaircraft.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top