+ Reply to Thread
Results 1 to 8 of 8

Listbox, textbox and cell worksheet

  1. #1
    Registered User
    Join Date
    04-10-2013
    Location
    Ha noi
    MS-Off Ver
    Excel 2003
    Posts
    11

    Listbox, textbox and cell worksheet

    Hi everyone,
    I have problem with listbox, please help me.
    1. if 1 click >| then textbox1= fist row in listbox2
    2 click >| then textbox2= second row in listbox2
    3 click >| then textbox3= third row in listbox2
    ..........

    (fifth click because i have 5 textbox)

    2. Regimen (textbox6) = value textbox1/value textbox2/value textbox3/value textbox4/value textbox5

    Many thanks
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Listbox, textbox and cell worksheet

    Will be helpful if you provide more details with your expected result


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    04-10-2013
    Location
    Ha noi
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Listbox, textbox and cell worksheet

    hi,

    I expected that value in listbox2 will be appears in cells H6, I6, J6, K6, L6. and textbox6 have value is H6/I6/J6/k6/L6 (it is regimen to treat for patient, i am a doctor.

    Thank you so much

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Listbox, textbox and cell worksheet

    Replace your CommandButton1_Click() code with the below one

    Please Login or Register  to view this content.
    Replace CommandButton3_Click() with the below code

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-10-2013
    Location
    Ha noi
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Listbox, textbox and cell worksheet

    Fist of all, thanks very much for your support, i have spend many times for write code.
    I have an other question:
    1. I want to textbox 1, ...texbox5 appears the id drug (column C), change B1 by 02
    2. when the CommandButton4 click sort ID drug from textbox 1, ...texbox5 and textbox6 appears textbox1/textbox 2....../ after sort by ID drug
    (That you know, we have standardization regimen_sort by priority drug)
    Thanks you so much

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Listbox, textbox and cell worksheet

    Sorry to say that I am little bit unable to understand your requirement

  7. #7
    Registered User
    Join Date
    04-10-2013
    Location
    Ha noi
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Listbox, textbox and cell worksheet

    As you know, if not VBA, i have 6 step for stand regiment. Can you write code VBA.
    (Pls attack file)
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    04-10-2013
    Location
    Ha noi
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Listbox, textbox and cell worksheet

    Hi Sixthsense

    I am developing tools entry data, but i have problem.

    when click btnSelect1

    1. Pls help me to appears ID drug in textbox 11, textbox 12, textbox 13, textbox 14, textbox 15
    2. Sort textbox 1, textbox 2, textbox 3, textbox 4, textbox 5
    by textbox 11, textbox 12, textbox 13, textbox 14, textbox 15 (by ID drug)
    3. txtregiment= textbox 1/textbox 2/textbox 3/textbox 4/textbox 5 (by ID drug)

    Many thanks for you help
    Attached Files Attached Files

+ 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. Listbox to Textbox
    By Benjamin2008 in forum Excel General
    Replies: 6
    Last Post: 12-12-2013, 06:13 AM
  2. Replies: 0
    Last Post: 08-19-2013, 05:12 AM
  3. use textbox code to listbox
    By darkhangelsk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-23-2013, 04:30 AM
  4. listbox filtering via textbox
    By nemmi69 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-12-2012, 04:23 AM
  5. [SOLVED] listbox and textbox problem
    By jeramie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-22-2006, 04:20 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