+ Reply to Thread
Results 1 to 4 of 4

Autofilter macro won't run if another has already been run

  1. #1
    Registered User
    Join Date
    04-02-2008
    Posts
    59

    Autofilter macro won't run if another has already been run

    Hi,

    I am creating a project pipeline sheet, and have created 6 buttons with macro's attached to them. They all work, but I have a problem when it comes to my autofiltering ones. There may be an easy fix, but I don't know what it is.

    Problem: Autofilter button #2 won't work properly when Autofilter #1 has been pushed, unless the autofilter function is turned off before pressing button #2.

    Solution?: A line of code that says if autofilters = on, then turn autofilters off. I should then be able to run the rest of the code....hopefully.

    I have attached a sample of the sheet that I am working on.
    Thanks for your help in advance.........Lukas
    Attached Files Attached Files
    Last edited by lukasj13; 09-24-2010 at 08:01 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Autofilter macro won't run if another has already been run

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: Autofilter macro won't run if another has already been run

    Check this out
    http://www.contextures.com/xlautofilter03.html#Off

  4. #4
    Registered User
    Join Date
    04-02-2008
    Posts
    59

    Re: Autofilter macro won't run if another has already been run

    Quote Originally Posted by davesexcel View Post
    I was actually just looking at that, for some reason couldn't get it to work. I used what Shg gave me a it works great. Thank you both for your help. I knew it was something simple, I have just been starring at this sheet for hours and my brain seems to be malfunctioning, and I seem to be over thinking things. Again thanks for you help, have a great weekend!!!!!!!!!!!!!!!!!!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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