+ Reply to Thread
Results 1 to 4 of 4

Updating a copied workbook with data from the original

  1. #1
    Registered User
    Join Date
    02-18-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    17

    Updating a copied workbook with data from the original

    Hi,

    I have a workbook that I wish to keep in my documents, however I have made a copy for my manager on our shared network drive. I would like the copy in the shared folder to update every time I make changes to the original.

    Is there a way of doing this?

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Updating a copied workbook with data from the original

    Please Login or Register  to view this content.
    The second sub saves two copies of the workbook.
    The second sub should go in the This workbook module and will save automatically on close.
    Last edited by AndyLitch; 04-10-2013 at 08:26 AM.
    Elegant Simplicity............. Not Always

  3. #3
    Registered User
    Join Date
    02-18-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Updating a copied workbook with data from the original

    Hi, thanks for coming back to me. Sorry if I appear a little thick, but what do I do with the code?

  4. #4
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Updating a copied workbook with data from the original

    1. Open your workbook.
    2. Right click on a worksheet tab and select "View Code"
    ......... The window will now switch to the VB editor.
    3. Find your Vb project in the project explorer window (which should be to the left) and will have the same name as your workbook.
    4. Right click on the project and select "Insert Module"
    5. Double click on module 1
    6. Paste the code for the sub savebook into the module
    7. Insert a shape onto your worksheet
    8. Right click on the shape and select "Assign macro"
    9. Select the save macro from the list
    10. Edit the blue and red lines in the code above for the correct filenames... Put the managers on top (blue) and then your file(red).

    Now every time you click the shape the workbook will be saved to both locations.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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