+ Reply to Thread
Results 1 to 3 of 3

Automatic advance between textboxes on a userform

  1. #1
    Forum Contributor
    Join Date
    07-08-2015
    Location
    Indiana
    MS-Off Ver
    Excel 2007
    Posts
    128

    Question Automatic advance between textboxes on a userform

    Hey there. I must be missing something with this code.
    On a userform, I am attempting to be in a textbox called txtPTagLtr. When 1 character is input (can be anything) it will automatically advance to the next text box called intPTagNo.

    Here is the code I have:
    Please Login or Register  to view this content.
    I have even gone so far as to go into the textbox properties of txtPTagLtr and change max length to 1; auto tab to True. If I look at the tab index positions, the textbox txtPTagLtr is 2, and the intPTagNo is 3.


    Any ideas why it wont automatically advance when a character is input?

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Automatic advance between textboxes on a userform

    The code works for me, anything else going on in the userform code?
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    07-08-2015
    Location
    Indiana
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: Automatic advance between textboxes on a userform

    Quote Originally Posted by Norie View Post
    The code works for me, anything else going on in the userform code?
    No. Most of the code is on the cmdButton. I have had the cursor do the following for me:

    * go backwards to the last textbox filled in before this one
    * go to the desctiption text box (its listed as number 15 on the tabindex)
    * go to the description textbox 2 textboxes down (set at number 17 on the tabindex)

    Driving me crazy................

  4. #4
    Forum Contributor
    Join Date
    07-08-2015
    Location
    Indiana
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: Automatic advance between textboxes on a userform

    Quote Originally Posted by scott micklo View Post
    No. Most of the code is on the cmdButton. I have had the cursor do the following for me:

    * go backwards to the last textbox filled in before this one
    * go to the desctiption text box (its listed as number 15 on the tabindex)
    * go to the description textbox 2 textboxes down (set at number 17 on the tabindex)

    Driving me crazy................
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Anyone with any ideas or thoughts with this?? I am stumped beyoind belief on this one. Anything that I can possibly look for?

    thanks so much in advance

    Any ideas why it wont automatically advance when a character is input?[/QUOTE]
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Anyone with any ideas or thoughts with this?? I am stumped beyoind belief on this one. Anything that I can possibly look for?

    thanks so much in advance

    Any ideas why it wont automatically advance when a character is input?[/QUOTE]
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Anyone with any ideas or thoughts with this?? I am stumped beyoind belief on this one. Anything that I can possibly look for?

    thanks so much in advance

    Any ideas why it wont automatically advance when a character is input?[/QUOTE]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Assigning value to all textboxes in UserForm
    By ChemistB in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-09-2015, 12:18 PM
  2. Help Populating Textboxes in Userform, With Multipage Userform.
    By mdmorgan24 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-07-2012, 05:29 PM
  3. Userform Help - Textboxes & offset
    By kbenstead in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 03-18-2009, 08:54 AM
  4. Userform TextBoxes
    By tqm1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-29-2007, 09:04 AM
  5. UserForm TextBoxes
    By Rob in forum Excel General
    Replies: 2
    Last Post: 08-05-2005, 10:07 PM
  6. Changing all textboxes on a userform
    By Mat K in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2005, 06:54 PM
  7. [SOLVED] Can I disable this automatic number advance thing?
    By Paul in forum Excel General
    Replies: 3
    Last Post: 01-11-2005, 01:06 PM

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