Closed Thread
Results 1 to 2 of 2

Populate TextBox based off ComboBox selection

  1. #1
    Registered User
    Join Date
    Charlotte, NC
    MS-Off Ver
    Excel 2007

    Exclamation Populate TextBox based off ComboBox selection

    I need to populate a textbox based off 2 combobox selections. My first combobox selects the worksheet. "08BOG, 09BOG, 10BOG...15BOG" My second combobox lists majors based off of the worksheet selected in combobox 1. I need my textbox to populate the value 18 rows over the selected worksheet and the selected row.

    Currently I have something like this

    Private Sub CommandButton1_Click()
    With Me
    .TextBox1.Value = Sheet1.Cells(.ComboBox2.ListIndex + 19, 18)
    End With

    End Sub

    But obviously this is all wrong because it is only referencing one sheet instead of the selected sheet in the combobox. SOMEBODY PLEASE HELP

  2. #2
    Forum Moderator 6StringJazzer's Avatar
    Join Date
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 2209 64-bit

    Re: Populate TextBox based off ComboBox selection

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    | | |?| |?| |?| |?| | |:| | |?| |?|
    Read the rules
    Use code tags to [code]enclose your code![/code]

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Populate textbox based off ComboBox Selection
    By ladams41 in forum Excel General
    Replies: 1
    Last Post: 04-09-2014, 10:13 AM
  2. Userform Combobox to populate based on selection in another combobox
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2014, 03:34 PM
  3. [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
  4. [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
  5. Filling Textbox based on Combobox selection
    By Borg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-22-2009, 02:55 AM


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