+ Reply to Thread
Results 1 to 8 of 8

Update Main Workbook from 3 other workbooks

  1. #1
    Registered User
    Join Date
    03-17-2017
    Location
    Hell
    MS-Off Ver
    2010
    Posts
    172

    Update Main Workbook from 3 other workbooks

    Good day all,

    Is there a way to add to (not replace) entries on the main workbook from other workbooks using VBA?

    I have attached the main workbook for daily amount entries. These entries will be made on our phones (version #1,#2, and #3) and preferrably when we get within our home wifi range the main workbook will update the new information. It seems very complicated to do but if possible I would appreciate any advice or suggestions on how this can be done.

    Thank you,
    Joe
    Last edited by LewisJ; 03-21-2017 at 11:25 AM.

  2. #2
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: Update Main Workbook from 3 other workbooks

    Hi Lewis,

    Try this. I have set it up so you select the file that you want to update from and it will update onto the main sheet and then clear the data, save and close.

    Please Login or Register  to view this content.
    Regards,
    Stephen

    If you feel someone has helped you please thank them and click on the star on their post to add reputation.
    Please ensure that you use code tags where relevant, and mark solved threads as solved.
    Most of all please be respectful and understanding of others.

  3. #3
    Registered User
    Join Date
    03-17-2017
    Location
    Hell
    MS-Off Ver
    2010
    Posts
    172

    Re: Update Main Workbook from 3 other workbooks

    Stephen,

    That works very well thank you so much. This may be too much to ask but could the macro be altered so 3 files be selected, updated, and cleared?

    We will have different versions:

    Expense Entry #1.xlsm
    Expense Entry #2.xlsm
    Expense Entry #3.xlsm

    Each will be on our phones to enter data each day. Is there a way that when we get in our home wifi the files from the phones be updated to the PC #1,#2, and #3?

    Then from the main file click to activate the macro to update the information?

    Thank you very much for your help,
    Joe

  4. #4
    Registered User
    Join Date
    03-17-2017
    Location
    Hell
    MS-Off Ver
    2010
    Posts
    172

    Re: Update Main Workbook from 3 other workbooks

    Stephen,

    I made some changes to my main workbook today with the great help from John Topley. I have a sheet 'Entries' with your macro on it.

    I attached the file so perhaps you can see how it works. I still wonder if it's possible to update all 3 entry books from there.

    Thanks again,
    Joe

  5. #5
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: Update Main Workbook from 3 other workbooks

    I'm not sure about accessing the files over wifi?!? Depends on your setup I guess.
    You can setup the macro (below) so that you dump them in a folder and the macro will pick up all three files.
    It may be easier, however, to leave it as is and connect each phone to your pc, select the macro and navigate to where each spreadsheet is stored on the phone. That way each person can do theirs whenever they want/need.

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    03-17-2017
    Location
    Hell
    MS-Off Ver
    2010
    Posts
    172

    Re: Update Main Workbook from 3 other workbooks

    Hello Stephen,

    I realized you and I are on much different time zones. How is it 'down under'? I really appreciate the help and wonder how you know code so well? I will try the new code and change the path part to my desktop to test it.

    Be back soon,
    Joe

  7. #7
    Registered User
    Join Date
    03-17-2017
    Location
    Hell
    MS-Off Ver
    2010
    Posts
    172

    Re: Update Main Workbook from 3 other workbooks

    Stephen,

    The code worked like a champ! Truly amazing! Hopefully others can benefit from this budget system.

    Thank you very much for your help,
    Joe

  8. #8
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: Update Main Workbook from 3 other workbooks

    Hi Joe,

    Glad I could help.
    'Down under' is the place to be, especially in the last few months when I have been able to hit the beach every few days!
    I am pretty much self taught in vba code, but it is easy when there is so much code out there to copy from and apply to what you need once you know the basic principles.
    Feel free to ask questions on these forums to get people to explain how different bits of code work so you learn more.

+ 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 that can compare one main workbook with two other workbooks.
    By jesimina in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2015, 05:33 AM
  2. [SOLVED] Split data from main workbook to new workbooks
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-29-2015, 05:46 PM
  3. [SOLVED] Open workbooks update the main one and close the other workbooks
    By stojko89 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-18-2013, 07:12 AM
  4. Using Vba create another workbook then update the formulas of main workbook
    By rename in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-29-2012, 06:12 AM
  5. Generate separate workbooks from main Workbook
    By robbie58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2012, 05:08 PM
  6. Replies: 2
    Last Post: 04-24-2009, 03:45 PM
  7. Close all workbooks except for the main workbook
    By Khaos176 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-21-2009, 02:48 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