+ Reply to Thread
Results 1 to 6 of 6

Save to multiple locations

  1. #1
    Registered User
    Join Date
    08-11-2005
    Posts
    4

    Save to multiple locations

    I am working on a spreadsheet, i need to have it to where it will save to 2 locations when the save button is pressed. Is there anyway possible of doing this?

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Does this help

    Change the path to your 2nd path

    Please Login or Register  to view this content.
    Note this will overwrite any previous backup with the same name without warning

    HTH

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    11-07-2006
    Posts
    26
    Quote Originally Posted by VBA Noob
    Hi,

    Does this help

    Change the path to your 2nd path

    Please Login or Register  to view this content.
    Note this will overwrite any previous backup with the same name without warning

    HTH

    VBA Noob
    Hi,
    I want to do the same thing and i copied your code but it doesnt seem to work.

    Private Sub Workbook_Save()
    ActiveWorkbook.save
    Application.DisplayAlerts = False
    ActiveWorkbook.SaveCopyAs "\\wlgfile4\660305$\ACurrent Projects\AProject General Docs\" & ActiveWorkbook.Name
    Application.DisplayAlerts = True
    End Sub

    i tried just putting in your codes (without private sub) but it also didnt work. As I am quite new to VBA, can you please oblige me by directing me to what i should do first?

    thanks so much

  4. #4
    Registered User
    Join Date
    11-07-2006
    Posts
    26
    Help please!
    Tell me what i've done wrong... :-(

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Are you sure the path is correct

    Try recording the action

    VBA Noob

  6. #6
    Registered User
    Join Date
    11-07-2006
    Posts
    26
    Quote Originally Posted by VBA Noob
    Are you sure the path is correct

    Try recording the action

    VBA Noob
    Hi,

    Yes. I tried other paths as well and it doesnt work.
    I might just have to settle for the default save a back up.. :-(
    thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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