+ Reply to Thread
Results 1 to 4 of 4

listbox populating on userform with named range

  1. #1
    Registered User
    Join Date
    03-21-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    22

    listbox populating on userform with named range

    Hello Everyone,


    1.
    want to create a named range range2 and want to set range (b8:f8), (b9:f9) and (b10:f10) under it, this I want to do so that I can use named range range2 as chartrange source. I want to populate revenue(b8:f8), cost (b9:f9) and total (b10:f10) in listbox, so when i select revenue from listbox it should refer to range2 (b8:f8) and accordingly change the chart graph, when i select cost from listbox it should refere to range2(b9:f9) and accordingly change the chart graph shwing cost figures.

    Please find the attached spreadsheet with 2 userforms and description of the problem. help is appreciated. Thanks in advance.

    Karan
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: listbox populating on userform with named range

    Modified code for userform1:
    Please Login or Register  to view this content.
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  3. #3
    Registered User
    Join Date
    03-21-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: listbox populating on userform with named range

    Hi,

    Thanks for your solution, but unfortunately its not running. can you please look into the spreadsheet and try to run it. I tried and its not running. There are 2 userform and I am looking for solving both of them. please refer to the spreadsheet, and for userform1 i want to populate range in listbox not in combobox. Please help. Thanks

    Karan

  4. #4
    Registered User
    Join Date
    03-21-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: listbox populating on userform with named range

    Hello Everyone,


    1.
    want to create a named range range2 and want to set range (b8:f8), (b9:f9) and (b10:f10) under it, this I want to do so that I can use named range range2 as chartrange source. I want to populate revenue(b8:f8), cost (b9:f9) and total (b10:f10) in listbox, so when i select revenue from listbox it should refer to range2 (b8:f8) and accordingly change the chart graph, when i select cost from listbox it should refere to range2(b9:f9) and accordingly change the chart graph shwing cost figures.

    Please find the attached spreadsheet with 2 userforms and description of the problem. help is appreciated. Thanks in advance.
    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)

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