+ Reply to Thread
Results 1 to 3 of 3

Copy range for another work workbook

  1. #1
    Registered User
    Join Date
    03-16-2020
    Location
    Perth
    MS-Off Ver
    365
    Posts
    78

    Copy range for another work workbook

    The following code seems to be working but instead of inserting and pasting the values from the copied range it only inserts one empty row.

    The way it should work is that from the active workbook, the macro would allow you to find and select the source workbook, copy range "A4:H" & Last Row -1 from a sheet called "Summary", then on the active (destination workbook), into sheet "Contract Value", between Column A row with "1" and Column A row with "Last" insert the required rows and paste the values.


    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    Re: Copy range for another work workbook

    try

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-16-2020
    Location
    Perth
    MS-Off Ver
    365
    Posts
    78

    Re: [SOLVED] Copy range for another work workbook

    k1dr0ck, Thank you for your suggestion. I actually managed to get it working.
    I realised I was closing the source workbook after copying, but before pasting. I moved the close source workbook code so that it was after the insert and paste function and it worked a treat.

    Working code below.


    Please Login or Register  to view this content.
    Last edited by Lazarus Rises; 04-26-2023 at 05:18 PM. Reason: Solved

+ 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. [SOLVED] Macro To Copy Date From One Workbook To Another Won't Work
    By timbo1957 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-14-2013, 07:00 AM
  2. Macro does not work when I move / copy sheet within the same workbook
    By osfares in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-23-2013, 11:45 AM
  3. [SOLVED] Why does this not work (Range.Copy, Range.PasteSpecial)
    By hansaaa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-23-2013, 06:09 AM
  4. Copy Desired data from one work book to another workbook
    By R_Abhilash in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-19-2013, 02:11 AM
  5. Replies: 9
    Last Post: 01-23-2011, 05:31 PM
  6. Copy and paste values from one work book to another workbook
    By TheAnswer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2010, 02:57 AM
  7. Copy multiple cells from several work books to one workbook
    By Blur1973 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-20-2008, 08:20 PM
  8. Replies: 2
    Last Post: 11-11-2005, 05:50 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