Results 1 to 4 of 4

Remove Duplicates but Dont delete the rows

Threaded View

  1. #1
    Registered User
    Join Date
    09-26-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    76

    Remove Duplicates but Dont delete the rows

    Hello Excelforum Members

    Following code working fine with me, but after removing duplicates, code collapse / combine records.

    Value should be keep on same place & should not be move up

    For example in column "A" contains data like

    VBA
    VBA
    VBA
    ABC
    Steave
    VBA
    ABC
    XYV
    Steave

    After runs of code value has coming
    VBA
    ABC
    Steave
    XYV





    Sub test1()
        Dim r As Range
        LR = Cells(Cells.Rows.Count, "A").End(xlUp).Row
        Set r = Range("A1:A" & LR)
        r.RemoveDuplicates Columns:=Array(1), Header:=xlNo
    End Sub
    Last edited by sagar007; 05-27-2013 at 07:33 AM.
    Sagar
    Arise awake & stop not till d goal reached

Thread Information

Users Browsing this Thread

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

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