Results 1 to 3 of 3

Copy columns, remove duplicates and paste different worksheet and column query

Threaded View

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

    Copy columns, remove duplicates and paste different worksheet and column query

    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"

    Sub CopyRemoveduplicatesReportsheet()
    EndRow = Sheets("Report").Cells(Rows.Count, "A").End(xlUp).Row + 1
    Set TargCell = Sheets("Report").Range("A" & EndRow)
    Set FilterRng = Sheets("Security").Range("B:B")
        FilterRng.AdvancedFilter Action:=xlFilterCopy, CopyToRange:=TargCell, Unique:=True
    End sub
    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.
    Last edited by Chris*; 01-09-2014 at 06:38 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro that would Copy/Paste to new sheet and remove duplicates
    By dani_n88 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-11-2012, 06:04 PM
  2. [SOLVED] Copy data from two columns and paste without duplicates in another column
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-22-2012, 07:56 PM
  3. 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
  4. Copy/Paste Remove Duplicates
    By Rage in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-19-2009, 07:38 AM
  5. Simple copy/paste link query
    By md1972 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-02-2008, 10:58 AM

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