+ Reply to Thread
Results 1 to 8 of 8

How to copy and paste new data from one workbook to another

  1. #1
    Registered User
    Join Date
    03-01-2014
    Location
    Stoke on Trent
    MS-Off Ver
    Excel 2019
    Posts
    31

    How to copy and paste new data from one workbook to another

    Hi hope you can help, i am very new to VBA and what i am trying to do is copy data from Excel 2010 "Caister Daily Data"(Source workbook) Tab is Called "Data" columns B to AG, to an Excel 2010 "Caister Test" (Destination workbook) Tab is Called "Data" Columns C to AH, but only when new data is inputted into the source workbook. If possible the destination Workbook "Caister Test" would have a button to press to start this data transfer.
    Last edited by Willows59; 06-29-2018 at 07:40 PM.

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,262

    Re: How to copy and paste new data from one workbook to another

    Perhaps this...Provided both files are in same path...
    Put this code in Workbook "Caister Daily Data" Sheets("Data") sheet Module...
    Everytime you enter new information when you add the last rows info in Col AG and press enter...That new row from column B to AG will be copied...and pasted to the Workbook called "Caister Test" Sheets("data") Column C from next new row...

    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    03-01-2014
    Location
    Stoke on Trent
    MS-Off Ver
    Excel 2019
    Posts
    31

    Re: How to copy and paste new data from one workbook to another

    Quote Originally Posted by sintek View Post
    Perhaps this...Provided both files are in same path...
    End Sub[/CODE]
    Files are not in the same path the "Caister Daily Data" workbook (source file)has the following path "G:\AW_YH_US_NWW\Private\Stalham TM NSTS\Caister WWTW" and the "Caister Test workbook (destination file)has a path "H:\My Documents"

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,262

    Re: How to copy and paste new data from one workbook to another

    Change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    Are the folders in same path

  5. #5
    Registered User
    Join Date
    03-01-2014
    Location
    Stoke on Trent
    MS-Off Ver
    Excel 2019
    Posts
    31

    Re: How to copy and paste new data from one workbook to another

    Sorry sintek i thought you meant the same path was are they in the same folders, which they have different holding folders. As i am missing something here (not hard in my case) can you explain what you meant by "same path" please as i am not sure exactly what you mean.

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,262

    Re: How to copy and paste new data from one workbook to another

    Are the folders in same path
    My bad...got thread confused...

  7. #7
    Registered User
    Join Date
    03-01-2014
    Location
    Stoke on Trent
    MS-Off Ver
    Excel 2019
    Posts
    31

    Re: How to copy and paste new data from one workbook to another

    Works a treat thank you for your help

  8. #8
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,262

    Re: How to copy and paste new data from one workbook to another

    Glad you got it sorted...Tx for rep +

+ 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 and Paste Special a data range from one workbook to another workbook
    By Kimston in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-11-2018, 12:21 AM
  2. Replies: 3
    Last Post: 02-16-2018, 06:40 PM
  3. [SOLVED] Macro to find data in source workbook and copy paste to target workbook
    By D.Lovell in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-23-2014, 06:21 AM
  4. Replies: 6
    Last Post: 03-26-2014, 11:40 PM
  5. [SOLVED] Code to copy data from a closed workbook and paste in active workbook using named range.
    By paullie1912 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-28-2014, 02:38 AM
  6. Replies: 6
    Last Post: 01-29-2013, 07:01 AM
  7. Copy data from workbook, create new workbook, paste data to new worbook?
    By mpkavanagh in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-16-2011, 06:39 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