+ Reply to Thread
Results 1 to 5 of 5

How do I merge two columns on different sheets and alphebtize the final list.

  1. #1
    Forum Contributor
    Join Date
    05-02-2013
    Location
    Indiana
    MS-Off Ver
    Excel 2016
    Posts
    190

    How do I merge two columns on different sheets and alphebtize the final list.

    Basically, I am creating a master product list in Sheet "LookupList". I will use all the products on Sheet "LookupList" in Column A2 down to the first blank row. Then I will copy Sheet "ExtFile" Column A2 down to the first blank row and add it to the bottom of Sheet "LookupList" and then finaly alphabetize the product list and removing any duplicates. Or should I remove duplicates before I alphabetize? Then I will have my updated Product list! Most everything workings, except when I run Sub CopyAndRemoveDups() it copies all of the other figures in the Sheet "ExtFile" Columns A - F and brings them over to "LookupList". Rightfuly so, because I have told it to do that! However, can someone tell me how to modify the code so that it only copies column A of Sheet "ExtFile". I do not need all the other columns in my master product list.
    Please Login or Register  to view this content.
    Lastly, the list never gets alphebtized and I'm not sure why?
    Please Login or Register  to view this content.
    Is there something wrong with this code? In order to run the merge, goto Sheet "LagTime" and click Merge button.

    Thanks for your help!
    redsab
    Attached Files Attached Files
    Last edited by redsab; 08-03-2014 at 08:30 PM.

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: How do I merge two columns on different sheets and alphebtize the final list.

    It's a typical use of the Scripting Dictionary
    See code here after to merge data
    Please Login or Register  to view this content.
    Last edited by PCI; 08-03-2014 at 05:35 PM.
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: How do I merge two columns on different sheets and alphebtize the final list.

    Try
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    05-02-2013
    Location
    Indiana
    MS-Off Ver
    Excel 2016
    Posts
    190

    Re: How do I merge two columns on different sheets and alphebtize the final list.

    PCI, Thanks for your quick reply. I ran test() and it gave me the following error:
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    05-02-2013
    Location
    Indiana
    MS-Off Ver
    Excel 2016
    Posts
    190

    Re: How do I merge two columns on different sheets and alphebtize the final list.

    Thanks jindon, that is short and sweet. I can't say I exactly understand it though. That worked great!
    redsab

+ 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. merge in rows (or columns) more than 50 sheets just in one
    By capercas in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-26-2015, 12:40 PM
  2. Creating a Final Estimate Form and a Final Materials List based on Worksheet Results
    By Crunched For Time in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 12-20-2013, 09:58 PM
  3. Merge multiple sheets with different columns into one
    By vishank86 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-14-2013, 12:23 AM
  4. [SOLVED] Merge multiple columns into one list
    By questionguy in forum Excel General
    Replies: 6
    Last Post: 09-12-2012, 10:39 AM
  5. Replies: 3
    Last Post: 10-31-2008, 05:22 PM

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