Consulting

Results 1 to 2 of 2

Thread: Defining a Textbox in a form

  1. #1
    VBAX Regular
    Joined
    Jun 2008
    Location
    tulsa, OK
    Posts
    24
    Location

    Defining a Textbox in a form

    Hi all. Was wondering if anyone could help me out with answering this question. I am assigning variables to Textboxs in my code. The problem is that I have two forms and each Form has a Text1 and Text2 and so on. So when I am assigning these Text1 and Text2 to a variable in my code I do not know how to differenciate them. Can anyone help or give me the simple code to differ the two? All help is much appreciated. Thanks.

  2. #2
    VBAX Tutor nst1107's Avatar
    Joined
    Nov 2008
    Location
    Monticello
    Posts
    245
    Location
    Assuming your two forms are named "UserForm1" and "UserForm2", the textboxes should be referred to as UserForm1.Text1, UserForm2.Text1, and so on.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •