+ Reply to Thread
Results 1 to 5 of 5

AutoFilter during macro issue

  1. #1
    Registered User
    Join Date
    01-29-2015
    Location
    Austin
    MS-Off Ver
    2013
    Posts
    12

    AutoFilter during macro issue

    I am using Microsoft Excel 2010. I have a macro that is not working they way I need it to work. I will try to explain it as best as I can. Any help will be appreciated.

    I have three columns with a couple thousand rows. I would like an autofilter to exclude(filter out) "0" and "(Blanks)" of the first column. I have recorded this event in the macro recorder and it works, but it is working backwards.

    Please Login or Register  to view this content.
    Instead of filtering out "0" and "(Blanks)", it is filtering in all others. This will be problematic because each time I run this event, the first column will contain different figures. What can I write that will filter out options instead of filtering in the options in my example?

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: AutoFilter during macro issue

    Try this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    01-29-2015
    Location
    Austin
    MS-Off Ver
    2013
    Posts
    12

    Re: AutoFilter during macro issue

    Norie, thanks for the reply. Is this going to filter out "<>" and "<>0"? It looks to me like it is filtering them in and everything else out. I want the opposite of that.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: AutoFilter during macro issue

    Did you try the code?

    It filters for everything not equal (<>) to a blank cell or 0.

  5. #5
    Registered User
    Join Date
    01-29-2015
    Location
    Austin
    MS-Off Ver
    2013
    Posts
    12

    Re: AutoFilter during macro issue

    Yes, it works like you said. Thank you.

+ 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. autofilter issue
    By displaced in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-01-2016, 06:35 AM
  2. Issue with autofilter
    By kokapelly in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-05-2014, 03:14 PM
  3. Autofilter issue using macro when locking worksheets
    By rajiraji in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-18-2013, 11:27 PM
  4. [SOLVED] Copy annd paste macro: issue with sorting via autofilter
    By Smeddlesboy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-10-2013, 02:27 AM
  5. VBA AutoFilter issue
    By rowee21 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-11-2012, 10:29 AM
  6. AutoFilter Issue
    By ilee10 in forum Excel General
    Replies: 3
    Last Post: 11-28-2008, 06:28 AM
  7. AutoFilter Issue
    By Kumarrrr in forum Excel General
    Replies: 1
    Last Post: 04-16-2008, 11:16 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