+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Run-time error '1004': AutoFilter help needed

  1. #1
    Registered User
    Join Date
    03-23-2011
    Location
    Yardley, PA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Run-time error '1004': AutoFilter help needed

    Good Morning:
    I've built 52 macros to filter data by state. They do work but I receive a Run-time error '1004': AutoFilter method of range class failed. Can anyone help with the macro example below?
    Thanks!

    Please Login or Register  to view this content.
    Last edited by DonkeyOte; 03-23-2011 at 09:44 AM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,164

    Re: Run-time error '1004': AutoFilter help needed

    Hi keyoh725 and welcome to the forum,

    In my experience error 1004 means you are trying to filter by a value that isn't in the list. If you look, manually, at the list of states, does "(AK)" appear at all? If it does then does it appear if you have filtered by another column? I believe you are trying to filter Alaska when it isn't in the list.

    Try to clear all filters of your autofilter before filtering by Alaska and see if that solves the problem.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Run-time error '1004': AutoFilter help needed

    keyoh725, Welcome to the Board

    Please be sure (per Forum Rules) to use CODE tags when posting VBA.

    Given this is your first post I have on this occasion modified on your behalf.

    @MarvinP, as an experienced member please consider compliance etc prior to responding - thanks.
    Last edited by DonkeyOte; 03-23-2011 at 09:48 AM. Reason: tidied up

+ 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