+ Reply to Thread
Results 1 to 5 of 5

Dynamically update Listbox in userform with Table(address,phone no, name ) in excel sheet

  1. #1
    Registered User
    Join Date
    06-28-2014
    Location
    Bombay
    MS-Off Ver
    2007
    Posts
    33

    Exclamation Dynamically update Listbox in userform with Table(address,phone no, name ) in excel sheet

    Hi friends

    i am using USERFORM (Excel worksheet is hidden) <----------this is completed

    On userform i have a textbox_1 and commandbutton (abc_cmd) and ListBox1

    when i type in "textbox_1" and click "abc_cmd" it is written/pasted in excel<----------this is completed

    NOW ? begins

    when i click "abc_cmd" whatever goes in excelworksheet should also be seen in ListBox1 (update listbox dynamically) ?


    please help me with the code
    thanks in advance
    Have a Great Day
    John Cruz

  2. #2
    Forum Contributor lancer102rus's Avatar
    Join Date
    04-02-2014
    Location
    Ufa
    MS-Off Ver
    Excel 2010, 2013
    Posts
    252

    Re: Dynamically update Listbox in userform with Table(address,phone no, name ) in excel s

    Set parameter "RowSource" for listbox1 and it will see every changes on sheet

  3. #3
    Registered User
    Join Date
    06-28-2014
    Location
    Bombay
    MS-Off Ver
    2007
    Posts
    33

    Re: Dynamically update Listbox in userform with Table(address,phone no, name ) in excel s

    i gave the "ROWSOURCE = Table1 ....in VBA property widow...it does get added but until we close the form and reopen it doesnot showup in ListBox.
    i want it to reflect as soon as i click abc_cmd

  4. #4
    Forum Contributor lancer102rus's Avatar
    Join Date
    04-02-2014
    Location
    Ufa
    MS-Off Ver
    Excel 2010, 2013
    Posts
    252

    Re: Dynamically update Listbox in userform with Table(address,phone no, name ) in excel s

    Well, i think wee should see your file, because my code works correctly and changes are immediately displayed in listbox

  5. #5
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Dynamically update Listbox in userform with Table(address,phone no, name ) in excel s

    You might try Userfom1.Repaint
    David
    (*) Reputation points appreciated.

+ 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. Use variable as name for label in userform, dynamically update different labels
    By seaofgreen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-09-2013, 04:12 PM
  2. [SOLVED] Merge 2 sheets by common data? Ex: sheet 1 has address, no phone. Sheet 2 same and phone
    By KathleenTurnis in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 12-28-2012, 04:18 PM
  3. [SOLVED] Userform Listbox to Activesheet.Range(Activecell.address).Value Error
    By Spyderz in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-26-2012, 04:59 PM
  4. Populate a comboxbox and Listbox in a excel userform with an sql table data
    By abhay_547 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-12-2010, 04:58 PM
  5. UserForm Listbox doesn't update
    By befar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2006, 08:10 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