+ Reply to Thread
Results 1 to 6 of 6

VBA code to select all data then copy and paste all unique value to another sheet

  1. #1
    Registered User
    Join Date
    03-02-2011
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    29

    VBA code to select all data then copy and paste all unique value to another sheet

    Hi there,

    I am trying to manipulate my data by copying all data within the cell and then copying over the unique rows into another sheet.

    My reference numbers will be in column A.

    I dont know how to go about it.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA code to select all data then copy and paste all unique value to another sheet

    Use advanced filter or remove duplicates functions. You do not need a macro for this task. Excel has built-in functions.

  3. #3
    Registered User
    Join Date
    03-02-2011
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: VBA code to select all data then copy and paste all unique value to another sheet

    Quote Originally Posted by AB33 View Post
    Use advanced filter or remove duplicates functions. You do not need a macro for this task. Excel has built-in functions.
    Thank you for the recommendation but I need to copy the filtered list to a new sheet on a daily basis. So filtering and removing duplicates will be too time consuming for me to do it daily.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA code to select all data then copy and paste all unique value to another sheet

    If you want a macro solution, please attach an excel book sample.

  5. #5
    Registered User
    Join Date
    03-02-2011
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: VBA code to select all data then copy and paste all unique value to another sheet

    Please find attached my sample data. I need to copy the data over to another sheet then delete all duplicates. The original data must not be altered with. This is only a sample my original data has over 20000 rows.

    Thanks for your help.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA code to select all data then copy and paste all unique value to another sheet

    The code creates first unique value in to new sheet.
    Attached Files Attached Files

+ 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. select, copy, and paste multiple different rows to new sheet
    By prjames3 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-10-2013, 12:42 PM
  2. Replies: 1
    Last Post: 03-28-2013, 02:49 PM
  3. [SOLVED] Macro to identify a unique value in a column to copy and paste value to another sheet
    By bonny24tycoon in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-04-2012, 07:59 AM
  4. Find Text, Select range below, copy, paste to new work sheet
    By kim5012 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-13-2011, 07:10 PM
  5. Find, Conditional Select Rows, Copy and Paste to new sheet
    By FN2010 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-26-2010, 12:22 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