+ Reply to Thread
Results 1 to 2 of 2

runtime error 1004 pastespecial method of range class failed

  1. #1
    Forum Contributor aprildu's Avatar
    Join Date
    04-13-2014
    Location
    Barrie,On, Canada
    MS-Off Ver
    Excel 2016
    Posts
    175

    runtime error 1004 pastespecial method of range class failed

    I have a strange case. The routine works the first time however when I run a second time continuously, it fails with a run time error 1004. I noticed the area to be pasted is selected due to clearcontents from a previous run. Some googling says it's because nothing is copied. But it works the first time I run? Why the second time it is not copied? Any help appreciated!!
    Last edited by aprildu; 03-30-2021 at 10:58 PM.

  2. #2
    Forum Contributor aprildu's Avatar
    Join Date
    04-13-2014
    Location
    Barrie,On, Canada
    MS-Off Ver
    Excel 2016
    Posts
    175

    Re: runtime error 1004 pastespecial method of range class failed

    I figured out the reason but I am going to leave the question and answer just in case someone has the same issue: I moved the copy after the clearcontents and it solved the problem.

+ 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 BorisGRU in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-31-2014, 07:09 PM
  3. 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
  4. [SOLVED] Runtime error PasteSpecial method of Range class failed
    By russ50 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-18-2012, 02:27 AM
  5. 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
  6. runtime error 1004 pastespecial method of range class failed
    By dreamz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-03-2006, 10:57 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