+ Reply to Thread
Results 1 to 2 of 2

Sort and remove duplicates based on 3 columns

  1. #1
    Registered User
    Join Date
    12-17-2016
    Location
    south carolina, USA
    MS-Off Ver
    2013
    Posts
    84

    Sort and remove duplicates based on 3 columns

    across like 20 sheets in same work book i need to sort 2 columns in ascending order and then remove duplicates based on 1,2 and 7th columns..i have written something like this..but i am getting Autofilter method of range class failed error..can someone check the code pls:

    Please Login or Register  to view this content.

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Sort and remove duplicates based on 3 columns

    Since it is not already in AutoFilterMode it is probably expecting some parameters and since there are none, it gives the alert. You don't need the AutoFilter in order to sort. Just use the Sort method by itself.

+ 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. sort and remove duplicates using VB
    By cmccabe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-23-2015, 05:49 PM
  2. [SOLVED] VBA to sort / remove duplicates
    By batchy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-19-2014, 01:24 PM
  3. [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
  4. [SOLVED] Remove duplicates and sort array
    By abousetta in forum Excel Programming / VBA / Macros
    Replies: 35
    Last Post: 10-11-2012, 10:22 AM
  5. Replies: 0
    Last Post: 07-07-2011, 05:04 PM
  6. Remove Duplicates from 2 columns then auto sort
    By Dsnellin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2011, 03:09 PM
  7. Sort and Remove Duplicates
    By rhudgins in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-18-2011, 05:19 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