+ Reply to Thread
Results 1 to 6 of 6

Getting list of values from the excel cell

  1. #1
    Registered User
    Join Date
    07-13-2012
    Location
    islamabad
    MS-Off Ver
    Excel 2010
    Posts
    15

    Getting list of values from the excel cell

    I have an Excel Sheet on which i have created a List consisting of many values. also I have created a macro which shows a user form in which those values are hard coded. Now I want that Those values in the form should automatically/Pro grammatically/dynamically added to my user form list. so that in the future if i want to decrease the values from the list then i would not have to change the macro again. I have been searching looking for the answer but its of no use? anyone know?

  2. #2
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: Getting list of values from the excel cell

    You have not made it clear what you need.

    Is your list of items in a column?

    Why can't you use something like:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-13-2012
    Location
    islamabad
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Getting list of values from the excel cell

    Acutally The values I want to get in excel cell is in the form of list. and has a filter enabled. and i want to add those values in user form list box.

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Getting list of values from the excel cell

    Hello vickyyar ,

    Can you post an example of how the data appears on the worksheet?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  5. #5
    Registered User
    Join Date
    07-13-2012
    Location
    islamabad
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Getting list of values from the excel cell

    yeah sure here is a link http://www.speedyshare.com/qneTe/sample.xlsx

    I just want to get the list of values from E1 cell. so that i can load it into the list box of the user form.
    Last edited by Cutter; 07-20-2012 at 11:20 AM. Reason: Removed whole post quote

  6. #6
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: Getting list of values from the excel cell

    I've been waiting for Leith Ross to reply since I would assume that his answer will be better than mine. I looked into this problem a couple months back, and one would think that there should be a simple answer to your question, but I didn't find it.

    I did find: http://www.techrepublic.com/blog/how...t-in-excel/111 by Susan Harkins.

    I didn't like Harkins solution because it ended up copying the filtered list to some obscure region of the worksheet and then used that region to move the items into a combobox or listbox (they use similar methods).

    So instead of using a filtered list method like Harkins suggest, I ended up creating a function which would create a unique list from a column of items.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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