+ Reply to Thread
Results 1 to 8 of 8

Macro code to transfer data to another file

  1. #1
    Registered User
    Join Date
    09-22-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    12

    Macro code to transfer data to another file

    Hi Guys,

    I would like to ask if there's a Macro Code to transfer the data to another file without opening the other file. I've attached 2 files (Tracker Leave & Master File). The Tracker Leave it is where we input all the data then later on I'll transfer it to another file which I named as Master File (no need to open this file).

    Thanks!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-04-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Macro code to transfer data to another file

    i also need this one, hope there's someone that could solve this thread

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Macro code to transfer data to another file

    You will have to open the workbook to write data into it.
    But you can do it very fast.
    Please Login or Register  to view this content.
    See the attached.
    Adjust folder locations and file names accordingly.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-22-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Macro code to transfer data to another file

    Hi davesexcel,

    It's works! But what if I want to transfer like in range? Would that be possible?

    Thanks!

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Macro code to transfer data to another file

    You can still use this code to transfer a range
    Try small change at the beginning:
    Please Login or Register  to view this content.
    and slight change later on
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  6. #6
    Registered User
    Join Date
    09-22-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Macro code to transfer data to another file

    Hi Kaper!

    That's awesome!!! Thanks for the help Kaper and also to davesexcel. )

    Regards,

  7. #7
    Registered User
    Join Date
    09-04-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Macro code to transfer data to another file

    Hi RA_Lek,

    does the codes perfectly works for you? I am still having a problem with this because when i clicked button 1 all data from tracker leave is being copied in master file. is it posible that only the new data that i added on the tracker leave will be added to the master leave? for example: if i added four leaves for four employee, then only those four will be added to the master list. hope someone could help me again regarding this.

    thanks

  8. #8
    Registered User
    Join Date
    09-04-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Macro code to transfer data to another file

    I've already figured it out how this works. this thread should be marked as "Solved"

    Thanks Davesexcel and Kaper for the help

+ 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 to transfer data from multiple workbooks into separate sheets of master file
    By salva7ore in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-20-2014, 08:18 PM
  2. Macro to Open a file, transfer data, save and close
    By tforbes75 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-01-2011, 11:59 AM
  3. macro to transfer data from one file to another
    By sha_ch in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-22-2010, 12:31 AM
  4. Keep code in template, do not transfer to new file
    By Dandaji in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-18-2008, 04:30 PM
  5. Replies: 0
    Last Post: 09-27-2005, 09:05 AM

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