+ Reply to Thread
Results 1 to 6 of 6

This line of code is causing an error message "Autofilter method of range class failed"

  1. #1
    Registered User
    Join Date
    07-12-2014
    Location
    invercargill, new zealand
    MS-Off Ver
    2007
    Posts
    26

    This line of code is causing an error message "Autofilter method of range class failed"

    'ActiveSheet.Range("$A$10:$P$2179").AutoFilter Field:=15, Criteria1:="yes"'

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: This line of code is causing an error message "Autofilter method of range class failed

    This if the header row is Row10
    Please Login or Register  to view this content.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    07-12-2014
    Location
    invercargill, new zealand
    MS-Off Ver
    2007
    Posts
    26

    Re: This line of code is causing an error message "Autofilter method of range class failed

    Thanks very much for the quick response, much appreciated

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: This line of code is causing an error message "Autofilter method of range class failed

    And did it solve your problem?

  5. #5
    Registered User
    Join Date
    07-12-2014
    Location
    invercargill, new zealand
    MS-Off Ver
    2007
    Posts
    26

    Re: This line of code is causing an error message "Autofilter method of range class failed

    My problem was poor eyesight �� I had typed an “l” at the end of criteria instead of a 1. Code works fine now, thanks again.

  6. #6
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: This line of code is causing an error message "Autofilter method of range class failed

    We all have large fingers when typing

+ 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. Replies: 1
    Last Post: 04-01-2014, 03:21 AM
  2. Error help "Select Method of Range Class Failed"
    By mongoose36 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-03-2014, 11:39 AM
  3. Runtime Error 1004 "Active method of range class failed".
    By new2excel2012 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-14-2012, 07:55 AM
  4. Error Using filters "Method of range class failed"
    By papermoon in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-12-2010, 10:07 AM
  5. Select method of Range class failed" error message
    By Session101 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-13-2009, 11:50 AM
  6. "Select method of range class failed" error
    By RBI in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-22-2008, 10:28 AM
  7. [SOLVED] Error Message "Select method of worksheet class failed"
    By philc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-04-2005, 04:06 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