+ Reply to Thread
Results 1 to 3 of 3

How do I combine multiple columns remove duplicates and paste different worksheet & column

  1. #1
    Registered User
    Join Date
    05-11-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    12

    How do I combine multiple columns remove duplicates and paste different worksheet & column

    Hi

    I have simple query for someone with advanced VBA knowledge. I have following macro to paste data in column A of destination sheet. I got it from: "http://www.mrexcel.com/forum/excel-questions/270724-unique-records-5-different-ranges.html"

    Please Login or Register  to view this content.
    I would however like to paste data in column C. I have tried to do this by changing the "A" value in second and third row of macro to "C". This seems however not to be sufficient. The macro has no effect. It does not copy and paste the data when I run it. Please note that my knowledge of VBA is very limited. Would appreciate if someone can just give me correct macro code.

  2. #2
    Forum Contributor gsnidow's Avatar
    Join Date
    07-22-2010
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2007
    Posts
    150

    Re: How do I combine multiple columns remove duplicates and paste different worksheet & co

    Does this not work?
    Please Login or Register  to view this content.
    Maybe there was another syntax error, but this seems to work for me.

    Greg
    Just a guy trying to make work stuff easier.

  3. #3
    Registered User
    Join Date
    05-11-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: How do I combine multiple columns remove duplicates and paste different worksheet & co

    Hi Greg

    Thanks for your help. It works. I am trying to combine the code with another similiar code retrieving data from another sheet when I get an error for the last line of the second statement just above the sub statement. Here is the code I am trying to run. Do you mind checking if I am missing some code to combine the two codes?

    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. Copy columns, remove duplicates and paste different worksheet and column query
    By Chris* in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-13-2014, 06:52 AM
  2. Remove duplicates from multiple columns using VBA
    By rbs123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-03-2013, 03:48 AM
  3. MAcro to - copy, transpose, text to columns, remove column A, combine all columns in 1
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 02-07-2013, 08:48 AM
  4. [SOLVED] Remove rows based on duplicates in certain columns, and merge data from another column
    By yanagi600 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-02-2013, 04:17 PM
  5. Find duplicates in 2 columns and copy/paste to new worksheet
    By davidparkes in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 11-12-2010, 01:38 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