+ Reply to Thread
Results 1 to 9 of 9

Autofilter Method of Range Class Failed

  1. #1
    Registered User
    Join Date
    05-28-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    45

    Autofilter Method of Range Class Failed

    Hi, my code is returning a run-time error, cant seem to figure out why.

    Please Login or Register  to view this content.

    Bugging out on the highlighted line

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Autofilter Method of Range Class Failed

    .Range("a:m").

    is wrong
    May be
    .Range("a1:m1").

  3. #3
    Registered User
    Join Date
    05-28-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Autofilter Method of Range Class Failed

    Tryed that as well! Doesn't work i'm afraid.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Autofilter Method of Range Class Failed

    What range are you trying to filter?

    May be

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-28-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Autofilter Method of Range Class Failed

    Doesnt work either i'm afraid, it's nothing to do with the fact i've put an array in, is it?

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Autofilter Method of Range Class Failed

    why use an array for one value?
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  7. #7
    Registered User
    Join Date
    05-28-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Autofilter Method of Range Class Failed

    that doesnt work either i'm afraid.

  8. #8
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Autofilter Method of Range Class Failed

    have you protected the sheet? do you have data in the first row?

  9. #9
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Autofilter Method of Range Class Failed

    Flindy87,
    Please attach a sample.

+ 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 Method of Range Class Failed
    By goss in forum Excel General
    Replies: 1
    Last Post: 04-05-2012, 11:44 AM
  2. AutoFilter method of Range class failed
    By AdLoki in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-30-2011, 05:30 AM
  3. AutoFilter method of Range class failed - Yet autofilter works.
    By Carlsbergen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2009, 05:43 PM
  4. AutoFilter method of Range class failed
    By blopreste3180 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2006, 06:45 PM
  5. [SOLVED] Autofilter method of range class failed
    By Terry K in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-17-2005, 11:05 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