+ Reply to Thread
Results 1 to 4 of 4

VBA copy paste between two books. 1004 error PasteSpecial method

  1. #1
    Registered User
    Join Date
    04-07-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    8

    VBA copy paste between two books. 1004 error PasteSpecial method

    Hi, I found a number of similar topics, however it did not help my code. Range from opened workbook should be copied into new opened file test and saved.
    This is a piece of code:


    Please Login or Register  to view this content.
    paste special row returns an error. Please help
    Last edited by alansidman; 07-29-2014 at 09:52 PM. Reason: code tags

  2. #2
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: VBA copy paste between two books. 1004 error PasteSpecial method

    Hi,

    Check the below code and hope this will help you:


    Please Login or Register  to view this content.

    Regards,
    Paresh J
    Click on "* Add Reputation" as a way to say thanks

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: VBA copy paste between two books. 1004 error PasteSpecial method

    fukirua

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (Because you are new to the forum, I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    04-07-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: VBA copy paste between two books. 1004 error PasteSpecial method

    Thank you for the support and sorry for the wrong formatting. I have found a flaw:
    code works after I added sheet to the cell part: Range(Sheet.Cells(i, 4)

+ 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 BorisGRU in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-31-2014, 07:09 PM
  2. vba error 1004 pastespecial method of Worksheet class failed
    By gdewolf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2014, 08:09 PM
  3. [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
  4. 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
  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

Tags for this Thread

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