+ Reply to Thread
Results 1 to 6 of 6

copy a range of cells (to last row) and paste into another workbook

  1. #1
    Registered User
    Join Date
    11-15-2013
    Location
    dublin
    MS-Off Ver
    Excel 2010
    Posts
    3

    copy a range of cells (to last row) and paste into another workbook

    Hi,

    I have the following code and am trying to copy a range of cells and paste into another workbook, however its only pasting one cell (not the range)

    help appriciated.

    Please Login or Register  to view this content.
    Last edited by alansidman; 11-15-2013 at 11:28 AM. Reason: code tags added

  2. #2
    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,890

    Re: copy a range of cells (to last row) and paste into another workbook

    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 here



    (I have added them today. Please read all the forum rules and comply with them 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

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: copy a range of cells (to last row) and paste into another workbook

    I think, when you use xldown on a range with more than one cell, it will use the first cell in the range as the reference. It will return a single cell, not the whole range.
    I think what you mean is:
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-15-2013
    Location
    dublin
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: copy a range of cells (to last row) and paste into another workbook

    Thanks for the response the sheet im pasting to is in another workbook and the above doesnt seem to work.

  5. #5
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: copy a range of cells (to last row) and paste into another workbook

    Sorry missed that bit:
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    11-15-2013
    Location
    dublin
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: copy a range of cells (to last row) and paste into another workbook

    Worked a treat! thanks

+ 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. Copy range from one workbook, paste to next empty cell in another workbook
    By glock9mm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-23-2013, 12:16 AM
  2. Replies: 2
    Last Post: 11-23-2012, 12:07 AM
  3. Copy and paste non consecutive cells and paste consecutively in another workbook
    By macquhele in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-12-2011, 02:36 PM
  4. Simple task: Open a workbook, copy a range, paste into another workbook
    By fbonetti in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-21-2011, 01:12 PM
  5. Copy A Range of Cells Or Sheet and Paste to A New Workbook
    By Nathan123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2007, 09:24 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