+ Reply to Thread
Results 1 to 2 of 2

Copy Filter Range to new worksheet error

  1. #1
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Copy Filter Range to new worksheet error

    Hi, I included a test book that may help with the issue I am having which is:

    I dont have the problem till the script runs on pro3 the scirpt is the same as pro 1 and pro 2 which work fine, the script appears to copy the data to the new worksheet but then errors out with a (runtime 1004 copy method of range class failed). But the data copies to the new worksheet? seems confusing because it's the same script just the data values changed.

    Please take a look and let me know what you think the problem could be.

    Thank You,Mike
    Attached Files Attached Files

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Copy Filter Range to new worksheet error

    Can't tell why it does not work but if you let the "On Error Resume Next" it seems to work just fine.
    You just have to remove the line "On Error GoTo 0" in all of your procedures.

+ 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