+ Reply to Thread
Results 1 to 2 of 2

VBA To Remove Duplicate Rows

  1. #1
    Registered User
    Join Date
    01-28-2015
    Location
    Tampa, FL
    MS-Off Ver
    2010
    Posts
    104

    VBA To Remove Duplicate Rows

    Hi.

    I am writing a macro to do several steps, one of which is removing duplicate rows beginning from row A3 down to the last row of data in column CG (which will vary each day). Rows 1 and 2 are frozen in place and need to remain. How do I write this VBA to perform the removal of duplicates. Below is the code I have so far. I don't know how to write the code for after I select the range I want to remove duplicates from while leaving rows 1 and 2 alone. Can anyone help?



    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: VBA To Remove Duplicate Rows

    The Advanced Filter feature has a Remove Duplicates option. Record a macro to get the code.

    Here is a link to a guide.
    https://www.contextures.com/excelrem...ers.html#vidrd
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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. How to remove duplicate Rows
    By Merrysa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-20-2019, 03:30 AM
  2. [SOLVED] How to sum duplicate values then remove the duplicate rows?
    By terry3218 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-12-2015, 02:38 AM
  3. [SOLVED] Remove Duplicate rows
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-13-2015, 02:34 PM
  4. [SOLVED] Remove duplicate rows
    By VBA FTW in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-06-2013, 03:21 PM
  5. excel macro to remove specific columns and rows + remove duplicate
    By garrywelson in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-17-2013, 12:03 PM
  6. Excel 2007 : Remove duplicate rows
    By springprogressive in forum Excel General
    Replies: 1
    Last Post: 09-05-2011, 07:32 AM
  7. remove duplicate rows
    By shahcu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-14-2008, 05:04 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