+ Reply to Thread
Results 1 to 10 of 10

Encounter typing problem with userform

  1. #1
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Encounter typing problem with userform

    Hi,

    I just created a userform and I have a difficulty to navigate this userform to be more friendly user. whenever I hit "Tab" It won't go to the next box it will go from the bottom to the top and you can not type anything when you hit tab. Can you help me figure out the problem? I also want to be able to use Vlookup when the userform hit OK. The FS Acccount and His Account will look up the customer name from the "List" tab and automatically fill in the number when the userform is finised filled in.

    Please see this attached
    BAT REDO.xlsm

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644
    You can set the order the controls are tabbed through by right clicking the form and selecting Tab Order.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Encounter typing problem with userform

    Thanks. It worked well when I changed the order from the TabIndex. Do you know how to do the Vlookup automatically?

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

    Re: Encounter typing problem with userform

    Don't change the TabIndex property of individual controls as that can affect other controls.

    Use the Tab Order dialog I mentioned.

    As for the VLookup, just put code in the click event of the OK button.

  5. #5
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Encounter typing problem with userform

    I can't find the Tab Order dialog when I right click.

    Do you know the code for Vlookup!

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

    Re: Encounter typing problem with userform

    Strange I can find it no problem, make sure you are clicking on the actual form itself and don't have any controls selected.

    What is it you want to lookup?

  7. #7
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Encounter typing problem with userform

    I want to Vlookup to get the FS Account and His Account in the "BatTab". The data is from the "List" Tab

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

    Re: Encounter typing problem with userform

    You can get the corresponding FS/His accounts for the selected customer from 'BatTab' like this.
    Please Login or Register  to view this content.
    Last edited by Norie; 07-09-2013 at 12:50 PM.

  9. #9
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Encounter typing problem with userform

    Do You know where I should put the code? I put it in either OKButton Click and UserForm Initialize and did not see anything happen in Column C3 & C4 in the BAT tab.

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

    Re: Encounter typing problem with userform

    The code would go in the OK button's click event.

    It only gets the account numbers for the selected customer and puts them in variables, nothing else

    What happens next is up to you, and it's not something I know about.

    If they are supposed to go in C3 and C4 on 'BAT'.
    Please Login or Register  to view this content.

+ 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