+ Reply to Thread
Results 1 to 4 of 4

Error 1004 - We can't paste because the Copy area and the paste area aren't the same size

  1. #1
    Registered User
    Join Date
    02-23-2015
    Location
    Heidelberg, Germany
    MS-Off Ver
    2013
    Posts
    2

    Angry Error 1004 - We can't paste because the Copy area and the paste area aren't the same size

    Hi all,

    I am trying to copy columns from one workbook to another. Whenever I enter only one value (1st cell of the column) I get the error from the subject (error 1004). As soon as I add at least 2 values, then it works.

    The code looks as follows:
    Please Login or Register  to view this content.
    Quite frustrating but I expect this can be solved easily.

    Thanks in advance.

    Cheers
    Julian

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Error 1004 - We can't paste because the Copy area and the paste area aren't the same s

    Hi, Julian,

    one value will mean than using CTRL+Down (STRG+PfeilRunter im deutschen Layout) will go to the last cell in that column so that row 4 and row 8 or later cvanīt match for the goven number of cells. I would recommend to go up from the last cell or check on the last row how nany cells need to be copied.

    Besides: you are looking for rows, not columns. I find it irritating if people use description which donīt refer to the code being used or use variables that donīt match what they are supposed to be doing.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    02-23-2015
    Location
    Heidelberg, Germany
    MS-Off Ver
    2013
    Posts
    2

    Re: Error 1004 - We can't paste because the Copy area and the paste area aren't the same s

    Quote Originally Posted by HaHoBe View Post
    Hi, Julian,

    one value will mean than using CTRL+Down (STRG+PfeilRunter im deutschen Layout) will go to the last cell in that column so that row 4 and row 8 or later cvanīt match for the goven number of cells. I would recommend to go up from the last cell or check on the last row how nany cells need to be copied.

    Besides: you are looking for rows, not columns. I find it irritating if people use description which donīt refer to the code being used or use variables that donīt match what they are supposed to be doing.

    Ciao,
    Holger
    Thanks for your reply.

    I am still a bit confused as I try to copy values column-wise. Attached a screenshot of the initial template maybe it gets clearer why I am referring to the term column and therefore also used it for the variable naming.

    Therefore, I thought this should work as I start below the header rows (at least row 4) and try to copy everything downwards from there.

    excel.jpg

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Error 1004 - We can't paste because the Copy area and the paste area aren't the same s

    Hi, Julian,

    using CTRL+DOWN when a single cell is filled with data and that beiung the start. Excel/VBA will select the last avaiable cell in that column. If two or more cells are filled the command goes to the last filled one. Thatīs why most helpers recommend CTRL+Up for the last cell and check if the cell is at least equal to the starting row number.

    Ciao,
    Holger

+ 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. RTE 104 Copy and Paste area not the same size
    By SueTysz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-01-2011, 08:06 PM
  2. copy and paste to defined area
    By twofootgiant in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-29-2011, 08:28 AM
  3. Replies: 3
    Last Post: 05-13-2011, 03:02 AM
  4. Copy/Paste Print Area
    By Fishwise in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-17-2009, 04:06 PM
  5. Cut area & Paste area size problem
    By noidea in forum Excel General
    Replies: 1
    Last Post: 07-19-2007, 12:35 PM

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