+ Reply to Thread
Results 1 to 6 of 6

Run time error 1004: PasteSpecial method of Range class failed

  1. #1
    Registered User
    Join Date
    09-12-2016
    Location
    England, UK
    MS-Off Ver
    MS 365
    Posts
    59

    Run time error 1004: PasteSpecial method of Range class failed

    Hi all,

    I am trying to make a piece of code to look up a row and paste another row of data as values over the top.

    Below is the code as I am trying it. It gets hung up on the last paste row. If someone could please point me in the right direction as I am pulling my hair out trying to make this work!

    Please Login or Register  to view this content.
    Last edited by Ollie7957; 09-27-2016 at 06:28 AM.

  2. #2
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: Run time error 1004: PasteSpecial method of Range class failed

    Please Login or Register  to view this content.
    If you are pleased with a member's answer then use the Star icon to rate it.

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Run time error 1004: PasteSpecial method of Range class failed

    Try this...

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  4. #4
    Registered User
    Join Date
    09-12-2016
    Location
    England, UK
    MS-Off Ver
    MS 365
    Posts
    59

    Re: Run time error 1004: PasteSpecial method of Range class failed

    Thank you both so much. Buran, your simple fix worked perfectly, however I will incorporate elements from Alpha's formula too. Thank you!

  5. #5
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Run time error 1004: PasteSpecial method of Range class failed

    Quote Originally Posted by Ollie7957 View Post
    Thank you both so much. Buran, your simple fix worked perfectly, however I will incorporate elements from Alpha's formula too. Thank you!
    You're welcome.

    Buran's fix corrected one problem, but that code would still throw an error if no match was found.

  6. #6
    Registered User
    Join Date
    09-12-2016
    Location
    England, UK
    MS-Off Ver
    MS 365
    Posts
    59

    Re: Run time error 1004: PasteSpecial method of Range class failed

    Quote Originally Posted by AlphaFrog View Post
    You're welcome.

    Buran's fix corrected one problem, but that code would still throw an error if no match was found.
    You are right. I hadn't yet gotten to that part as I was trying to fix this run time error. Thanks again to you both.

+ 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. 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
  2. Run-time error '1004': PasteSpecial method of Range class failed
    By jaghuar in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-14-2015, 07:35 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. Run-time error '1004' - PasteSpecial method of Range class failed
    By antonf in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-10-2010, 04:42 PM

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