+ Reply to Thread
Results 1 to 3 of 3

Macro gives error 1004

  1. #1
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,075

    Macro gives error 1004

    I have this macro which I partially recorded and partially pasted from other VBA code. (I'm a beginner with VBA!) The macro stops with the message:

    Runtime error '1004'
    AutoFilter method of Range class failed


    When I click on Debug, the red line in the code below is highlighted in yellow, but I have no idea how to resolve the problem.

    Please Login or Register  to view this content.
    Thanks in anticipation!
    Trish in Oz
    -------------
    A problem well defined is a puzzle half solved


    If you attach a sample of your workbook it will be easier to find a solution. Remember to remove/replace sensitive data before uploading the file. Look here if you need help with attachments:
    http://www.excelforum.com/faq.php?fa...b3_attachments

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Trish

    Change
    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.
    rylo

  3. #3
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,075
    Quote Originally Posted by rylo
    Trish

    Change
    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.
    rylo
    Thanks, Rylo. Shows what happens when I try to combine code from two different sources. You're a champion!

+ 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