+ Reply to Thread
Results 1 to 3 of 3

Code stopped working

  1. #1
    Registered User
    Join Date
    03-16-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    1

    Code stopped working

    I have this bit of code embedded in a macro. It used to work and now produces the infamous Error 438 when executing the second line. I have recorded a test macro, doing what the code tries to do, and the recorded code is EXACTLY the same as my code (which is not surprising as that's where it came from inthe first place). Help!

    Sheets("MASTER RISKS").Select
    Selection.AutoFilter Field:=3, Criteria1:="<>Identified", Operator:=xlAnd
    Selection.AutoFilter Field:=6, Criteria1:="E"

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Code stopped working

    You should tell it a range to filter on. Something like:

    Please Login or Register  to view this content.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    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: Code stopped working

    Welcome to the forum, kinleyr.

    Please take a few minutes to read the forum rules,a nd then edit your post to add code tags.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

+ 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