+ Reply to Thread
Results 1 to 4 of 4

Loop into TextBoxes in an UserForm

  1. #1
    Forum Contributor pierre08's Avatar
    Join Date
    02-16-2010
    Location
    Paris
    MS-Off Ver
    Excel 2003
    Posts
    166

    Loop into TextBoxes in an UserForm

    Hi guys,
    I have an Userform that contain 10 TextBoxes, is there a way to loop into this textboxes, i tried:
    Please Login or Register  to view this content.
    and this:
    Please Login or Register  to view this content.
    Both of the code are not working, is there a way that i can do this.

    Thanks for your help.
    Last edited by pierre08; 06-15-2010 at 09:38 AM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Loop into TextBoxes in an UserForm

    Try this as an example

    With 10 textboxes on your userform

    Please Login or Register  to view this content.

    That should illustrate one method that you could further control by qualifying Controls(i).Name


    Hope this helps.

    If you need any further information, please feel free to ask further

    However

    If this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody!
    Also
    If you are satisfied by any members response to your problem please consider using the scales icon top right of thier post to show your appreciation.

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,015

    Re: Loop into TextBoxes in an UserForm

    If your textboxes are called TextBox1, TextBox2 etc, you can use:
    Please Login or Register  to view this content.
    Everyone who confuses correlation and causation ends up dead.

  4. #4
    Forum Contributor pierre08's Avatar
    Join Date
    02-16-2010
    Location
    Paris
    MS-Off Ver
    Excel 2003
    Posts
    166

    Re: Loop into TextBoxes in an UserForm

    Thanks for your help, this works perfectly

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1