+ Reply to Thread
Results 1 to 4 of 4

Remove all autofilters before copying

  1. #1
    Forum Contributor
    Join Date
    11-21-2013
    Location
    KL
    MS-Off Ver
    Excel 2010
    Posts
    168

    Remove all autofilters before copying

    Hi,

    I need to copy a range of data from one sheet to another, however, i found out that I have to clear the filters first or else it will copy the filtered data only.
    I have 16 columns of data and I need to filtered only one of them and leave the rest of them to "Select All"

    Below is the long winded code that works for me, however, i have a range of data up to 15000 rows, so sometimes it is a bit slow.
    I am wondering is there a shorter, more compact macro to give the same result?

    Appreciate any assistance.

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Remove all autofilters before copying

    Hello hcyeap,

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    11-21-2013
    Location
    KL
    MS-Off Ver
    Excel 2010
    Posts
    168

    Re: Remove all autofilters before copying

    hi leith, thank you for your reply.

    Please Login or Register  to view this content.
    so if i only need to filter one column, i shall write my code like this?

    Edit: Hi, I tried and it worked.

    Thank you!

    Eidt: I am sorry
    Apparently it is not working... i filtered my data, run the macro and it is not showing all...
    Last edited by hcyeap; 12-30-2013 at 12:27 AM.

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Remove all autofilters before copying

    Hello hcyeap,

    You're welcome.

+ Reply to Thread

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