+ Reply to Thread
Results 1 to 7 of 7

Use option button to populate textbox from table value

  1. #1
    Forum Contributor
    Join Date
    05-08-2009
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    223

    Use option button to populate textbox from table value

    Hi

    Apologies, I'm sure this is very simple...

    I have a table in Sheet1 which only has two columns A - containing a part number and B - part description.

    I have two textboxes (A and B) and an option button,

    I want to type the part number into Textbox A and then press the option button to display the part description in Textbox B.

    How can I code that?

    Thank you,

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Use option button to populate textbox from table value

    try

    =
    Please Login or Register  to view this content.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor
    Join Date
    05-08-2009
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    223

    Re: Use option button to populate textbox from table value

    Thanks for the reply, however that just copies the data from one textbox to the other...

    What I need is to key in a part number (from Column A in the worksheet table) into Textbox A and when the button is clicked the corresponding part description (from Column B in the worksheet table) is displayed in Textbox B.

    The textboxes are in a userform.

    cheers,

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Use option button to populate textbox from table value

    a small worksheet example will help us to help you.

  5. #5
    Forum Contributor
    Join Date
    05-08-2009
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    223

    Re: Use option button to populate textbox from table value

    ok, sorry. File attached...
    Attached Files Attached Files

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Use option button to populate textbox from table value

    1 way could be this.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    05-08-2009
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    223

    Re: Use option button to populate textbox from table value

    That'll do nicely.

    Thank you

+ 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] Textbox and Option Buttons - If Textbox has a Value then an Option Button must be selected
    By MeerkatMatt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-08-2014, 07:45 AM
  2. [SOLVED] Help With Using Option Button and Textbox with A Command Button
    By VBTroubles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2014, 09:40 AM
  3. [SOLVED] option button to disable textbox
    By molesy in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-25-2014, 09:02 AM
  4. Using an Option Button to send a textbox value to a cell
    By JChaney17 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-06-2013, 11:24 PM
  5. [SOLVED] passing Option button result to textbox
    By tigerdel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-29-2012, 02:35 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