+ Reply to Thread
Results 1 to 4 of 4

Copy from 1 workbook to another one

  1. #1
    Registered User
    Join Date
    08-11-2019
    Location
    USA
    MS-Off Ver
    365
    Posts
    43

    Copy from 1 workbook to another one

    Hello all,

    I have 2 files. The first one is a logbook, every other day somebody goes to the next empty row and fill data on cells.
    I'm trying to create a macro that, after filling a row, it recognizes the last row filled, copy the cells and paste it in another workbook, but in different locations (for example, A2 in the first one will be pasted in B2 in the second one.

    See files attached.

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,522

    Re: Copy from 1 workbook to another one

    If someone has a solution for you, it helps to know if the "Destination" Workbook is open or not.
    If it is not open, where is it? (Need full path)

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,522

    Re: Copy from 1 workbook to another one

    If Both Workbooks are open, this should do it.
    Change references if and where required.
    The code is in the "Source" Workbook and macro is run from the "Source" Workbook.
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-11-2019
    Location
    USA
    MS-Off Ver
    365
    Posts
    43

    Re: Copy from 1 workbook to another one

    Hi,
    I had some problems and I tried to fix it by myself and now I'm stuck...
    I uploaded a table with additional cells to be copied.
    The cells from that specific row need to be copied to another workbook, on 1 specific row.
    See attached the file named "FORUM - 8-7-20".
    Thanks very much for the help.
    Attached Files Attached Files

+ 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] Copy columns to new workbook with matched headers, then save new workbook as a text file.
    By haitran in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-17-2017, 05:53 PM
  2. Replies: 3
    Last Post: 12-07-2017, 05:14 PM
  3. Open 2nd workbook find matching worksheet names and copy values to 1st workbook
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-09-2017, 10:22 AM
  4. Assign name to Workbook, Copy range from one workbook to another workbook
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-18-2015, 03:40 AM
  5. Copy data one workbook to another workbook without opening workbook
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2014, 11:28 AM
  6. [SOLVED] Copy Values From Each Workbook in Folder to a Single Sheet in New Workbook +Workbook names
    By Arsham24 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-21-2012, 07:42 PM
  7. Replies: 1
    Last Post: 04-01-2006, 03: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