+ Reply to Thread
Results 1 to 6 of 6

Transfer to Textbox on Userform based on Combobox selection

  1. #1
    Forum Contributor
    Join Date
    08-07-2014
    Location
    London
    MS-Off Ver
    10
    Posts
    148

    Transfer to Textbox on Userform based on Combobox selection

    Hi all

    I was wondering if someone could help me with this. I have a userform that needs to be completed by someone but what I want to do is based on the selection someone makes in a combobox for example 'Yes' this automatically will transfer them to specific textbox which needs to be completed next. Basically skipping any textboxes which don't need to be completed.

    So if you think of it as when you're completing a questionnaire and it may ask you to skip to question 6 depending on what you put in a particular box in question 1.

    I hope this makes sense.


    Thanks all!
    Last edited by ShakJames; 11-07-2016 at 07:23 AM.

  2. #2
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Transfer to Textbox on Userform based on Combobox selection

    Maybe you could use a message box trigger by change event?

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-07-2014
    Location
    London
    MS-Off Ver
    10
    Posts
    148

    Re: Transfer to Textbox on Userform based on Combobox selection

    Hi Dave

    Thank you for the response. I originally did use that method but found people were filling boxes incorrectly, so was basically trying to make it more robust.

    Sorry should have said that I'd used a combobox method. What would be good if they pressed yes and it took them to the specific textbox as well.

  4. #4
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Transfer to Textbox on Userform based on Combobox selection

    Why not combine it with

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    08-07-2014
    Location
    London
    MS-Off Ver
    10
    Posts
    148

    Re: Transfer to Textbox on Userform based on Combobox selection

    Good idea. I have actually just stumbled across something. I have used SetFocus and it seems to have done what I need. The code for anyone who might be interested is:

    Please Login or Register  to view this content.
    R13 is the name of the combobox and R19 the name of the textbox. I hope this will help someone.

    Thanks for your help as well, Dave. Much appreciated.

  6. #6
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Transfer to Textbox on Userform based on Combobox selection

    Glad you got it sorted.

+ 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. ComboBox values source being changed based on another combobox selection in a UserForm
    By stephenanderson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-08-2016, 11:12 PM
  2. Calculating/adding userform textbox values based on combobox selection and display to cell
    By SpreadsheetGirl in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-04-2015, 08:57 AM
  3. [SOLVED] Userform textbox value based on combobox selection
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-17-2014, 11:56 AM
  4. [SOLVED] Excel Userform: Populate other controls (i.e. textbox & combobox) based on combobox select
    By MileHigh_PhD in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-22-2013, 04:50 PM
  5. [SOLVED] Fill a cell via textbox on userform depending on combobox selection
    By Rhamilton2512 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-15-2012, 10:29 AM
  6. [SOLVED] How do I make a selection from a combobox on my VBA userform populate a textbox?
    By ChristianMba in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-16-2012, 01:08 PM
  7. Find UserForm ComboBox Value (date) & Transfer TextBox Data To Same Row
    By okriskao in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2008, 11:33 AM

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