+ Reply to Thread
Results 1 to 4 of 4

Update Listbox Rowsource when combobox_change in userform

  1. #1
    Registered User
    Join Date
    03-27-2009
    Location
    Surat,India
    MS-Off Ver
    Excel 2007
    Posts
    52

    Update Listbox Rowsource when combobox_change in userform

    Dear All,

    I m not able to update listbox rowsource when combox selection will change.

    PLease help.My code are as below.
    Please Login or Register  to view this content.
    Hifliers!!
    Please mark your thread as SOLVED:

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Update Listbox Rowsource when combobox_change in userform

    Please Login or Register  to view this content.
    Something like that, you dont pass the range itself in, a string of what the range will be like "Sheet1!A2:A10000"
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    03-27-2009
    Location
    Surat,India
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: Update Listbox Rowsource when combobox_change in userform

    Thankyou! Nathan

    Sorry! not to specify details.

    I have sheetnames in my combobox rowsource. So each time a combox selection change, it search for sheetname in workbook and listbox rowsource will be for the selected sheet.

    e.g. If i select sheet1 in combobox listbox rowsource will be sheet1.range(xyz) and if i select sheet2 in combobox,listbox rowsource will be sheet2.range(xyz).

    My workbook having more than 25 sheets.

    Hope it clears my question
    Regards,
    Vishnu

  4. #4
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Update Listbox Rowsource when combobox_change in userform

    Ok, so you want it to be made up of say x records from sheet1 and y records from sheet2 etc?

    If not, why are you looping the sheets, for containing the sheet name, why not just reference the sheet?

    Please Login or Register  to view this content.

+ 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.rowsource
    By nyfmpha in forum Excel General
    Replies: 3
    Last Post: 11-13-2013, 12:07 AM
  2. [SOLVED] VBA: UserForm ListBox Column Headings RowSource = Named Range
    By Hudas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-22-2012, 02:21 AM
  3. UserForm Listbox doesn't update
    By befar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2006, 08:10 PM
  4. ???Help??? Userform.Listbox.rowsource = ???
    By Steve Sparti in forum Excel General
    Replies: 0
    Last Post: 03-01-2006, 05:50 PM
  5. Initialize Userform, Populate Listbox, Dynamic RowSource?
    By RShow in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-21-2005, 03:05 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