+ Reply to Thread
Results 1 to 9 of 9

Using VBA: I have a list with multiple entries.Need to reduce down to unique entries

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Using VBA: I have a list with multiple entries.Need to reduce down to unique entries

    i have a list of names.........there are multiple names in the list.
    I need to generate a "unique" list of names using VBA........

    any ideas?

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Using VBA: I have a list with multiple entries.Need to reduce down to unique ent

    welchs101,

    Something like this?
    Please Login or Register  to view this content.


    Hope that helps,
    ~tigeravatar

  3. #3
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Re: Using VBA: I have a list with multiple entries.Need to reduce down to unique ent

    that will work! thanks!

  4. #4
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Re: Using VBA: I have a list with multiple entries.Need to reduce down to unique ent

    question:

    Using your suggestion from before i was able to get the "filered list". I can even copy the filtered list to a "new" destination. Which i like.

    Here is some code (keep in mind i have not made it as variable ....i hard coded the range for simplicity)

    Please Login or Register  to view this content.
    What i want is the filtered list to go to col B. Which the above does do. However, i want the filtered list to start in B2 and not to put a col header...........anyway to do this?

  5. #5
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Using VBA: I have a list with multiple entries.Need to reduce down to unique ent

    welchs101,

    Give this a try:
    Please Login or Register  to view this content.


    Hope that helps,
    ~tigeravatar

  6. #6
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Re: Using VBA: I have a list with multiple entries.Need to reduce down to unique ent

    also, is there a way to copy the contents to another workbook and sheet?

    sorry to keep adding things to the list.

    thanks for your help.

  7. #7
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Re: Using VBA: I have a list with multiple entries.Need to reduce down to unique ent

    also, why do you do the clear statement at the end? just curious.

  8. #8
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Re: Using VBA: I have a list with multiple entries.Need to reduce down to unique ent

    using what you gave me and some of my own code........here is what i have and it seems to work


    Please Login or Register  to view this content.
    again, just wondering about the clear statement. can you tell me why you did this?

    thanks alot ..............you really helped.

  9. #9
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Using VBA: I have a list with multiple entries.Need to reduce down to unique ent

    welchs101,

    again, just wondering about the clear statement. can you tell me why you did this?

    ...

    i want the filtered list to start in B2 and not to put a col header...........anyway to do this?
    I put the clearcontents line in to delete the column header

    ~tigeravatar

+ 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