+ Reply to Thread
Results 1 to 5 of 5

Error: 1004, PasteSpecial method, Script out of range

  1. #1
    Registered User
    Join Date
    06-09-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    3

    Error: 1004, PasteSpecial method, Script out of range

    Hi All,
    I know this error has been addressed multiple times, but I can't seem to find a fix for this script.
    I get the Error: 1004, PasteSpecial method of worksheet class failed. Followed by Runtime error: 9, Subscript out of range.

    The scrip has worked fine for years, but I think the website it was pulling data from made a change and now the script is broken.

    Any help would be awesome.
    Thanks!

    Chunk of code where I'm getting error.


    Please Login or Register  to view this content.
    The Line "Workbooks("Cust_Tally_Tracking_Template.xlt").Activate" is highlighted yellow when I debug.

    Let me know if you need more info, hopefully easy fix.
    Thanks!

    Dexter

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Error: 1004, PasteSpecial method, Script out of range

    Usually a subscript error means something cannot be found. Is that template open?

  3. #3
    Registered User
    Join Date
    06-09-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    3

    Re: Error: 1004, PasteSpecial method, Script out of range

    Yes, it works by selecting text on a website, copying.
    Then pressing an import button in excel. that's when I get the error.

    Thanks!

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Error: 1004, PasteSpecial method, Script out of range

    Okay, then there is an open workbook named "Cust_Tally_Tracking_Template.xlt",?

  5. #5
    Registered User
    Join Date
    06-09-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    3

    Re: Error: 1004, PasteSpecial method, Script out of range

    I renamed workbook to that and still same errors.
    It worked before and had different names, don't think that's causing it.

+ 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. Runtime error 1004 - PasteSpecial method of Range class failed
    By Ruthie09 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-23-2016, 08:17 PM
  2. Run-time error '1004': PasteSpecial method of Range class failed
    By drgkt in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-20-2015, 04:01 PM
  3. Run time error '1004': PasteSpecial method of Range class failed
    By BorisGRU in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-31-2014, 07:09 PM
  4. PasteSpecial method of range class failed error 1004
    By iwannabakat in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-05-2014, 08:51 PM
  5. [SOLVED] VBA Run-time error '1004': PasteSpecial method of Range class failed on 2nd run
    By hydz1213 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-05-2013, 11:05 AM
  6. runtime error 1004 pastespecial method of range class failed
    By JillCALIBRE in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-30-2009, 11:31 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