+ Reply to Thread
Results 1 to 4 of 4

Macro for copying and pasting multiple ranges

  1. #1
    Registered User
    Join Date
    02-19-2020
    Location
    london
    MS-Off Ver
    excel 11
    Posts
    2

    Macro for copying and pasting multiple ranges

    Hi, I am looking to copy and paste multiple cells from "sheet1" in one workbook ("workbook1") to the last available row into "sheet1" in another workbook ("workbook1").

    The cells I need to copy from workbook1 are A1, B4, C6:D8) and I would like to paste these into column A, C and D in the last available column in another workbook.

    Please could someone help with the code for this? I am new to VBA. Thank you!

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Macro for copying and pasting multiple ranges

    A1 to be paste to last row in column A
    B4 to be paste to last row in column C
    C6:D8 to be paste to last row in column D => all values in the same column ?

    in another workbook ("workbook1").
    certainly in another workbook ("workbook2"). is it ?
    Last edited by PCI; 02-19-2020 at 12:31 PM.
    - Battle without fear gives no glory - Just try

  3. #3
    Registered User
    Join Date
    02-19-2020
    Location
    london
    MS-Off Ver
    excel 11
    Posts
    2

    Re: Macro for copying and pasting multiple ranges

    A1 to be paste to last row in column A
    B4 to be paste to last row in column C
    C6:C8 to be paste to last row in column D:F
    yes workbook2 is the other workbook but it needs to be pasted into "sheet2" of workbook2
    (copy from "sheet1" of workbook1)
    Thank you

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Macro for copying and pasting multiple ranges

    Assuming all files are already loaded in Excel try next code to be put in workbook1

    Please Login or Register  to view this content.

+ 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. Macro for copying table and pasting in multiple slides in powerpoint
    By iffitheking in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2019, 08:12 AM
  2. [SOLVED] Copying/Pasting cell ranges
    By wandelust99 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-01-2018, 04:10 PM
  3. Macro for copying multiple columns and pasting 'n' times to another workbook
    By busybee235 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 10-01-2012, 02:10 PM
  4. Beginner Macro Question - Copying and Pasting Ranges
    By sfmatt13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2012, 07:49 AM
  5. Copying and pasting named ranges
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-21-2012, 09:16 PM
  6. copying and pasting ranges
    By inkexit in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-27-2008, 10:11 PM
  7. Replies: 2
    Last Post: 10-14-2007, 01:05 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