+ Reply to Thread
Results 1 to 9 of 9

Save in multiple locations

  1. #1
    Forum Contributor
    Join Date
    01-03-2016
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    2016
    Posts
    125

    Save in multiple locations

    I have this code to save in multiple locations, but from the second time (when I already have the file saved in both places), excel starts giving me this pop-up asking me if I want to replace it (of course I want, but with the same name) and changing the name and place of it when I say that I want.
    Is there any way to deactivate this pop-up? or saving it in another way? or another thing that solves it?

    This is the code:
    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Save in multiple locations

    Try this...

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor
    Join Date
    01-03-2016
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    2016
    Posts
    125

    Re: Save in multiple locations

    It's creating 2 files on "C:\Users\Alice"
    DocumentosDownloadstest dev ("C:\Users\Alice\DocumentosDownloadstest dev.xlsm")
    and
    Downloadstest dev ("C:\Users\Alice\Downloadstest dev.xlsm")

    I changed their final folders, but isn't this one above. It should be:
    Please Login or Register  to view this content.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Save in multiple locations

    Use .SaveCopyAs instead of .SaveAs

    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 01-28-2016 at 02:42 PM.

  5. #5
    Forum Contributor
    Join Date
    01-03-2016
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    2016
    Posts
    125

    Re: Save in multiple locations

    It's still creating these 2 file there =/

  6. #6
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Save in multiple locations

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    01-03-2016
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    2016
    Posts
    125

    Re: Save in multiple locations

    It worked!! I wasn't writing this back slash (\).

    Please Login or Register  to view this content.

  8. #8
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Save in multiple locations

    And you're welcome.

  9. #9
    Forum Contributor
    Join Date
    01-03-2016
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    2016
    Posts
    125

    Re: Save in multiple locations

    Sorry, thank youuuu!! =)

+ 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. Save sheet to multiple locations
    By Woopwoop in forum Excel General
    Replies: 0
    Last Post: 06-26-2015, 09:26 AM
  2. different save locations based on OS
    By 288enzo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-24-2014, 05:52 PM
  3. At A Loss: Click Save - Saves To Multiple Locations
    By MACanada in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-16-2014, 10:04 AM
  4. Replies: 4
    Last Post: 05-22-2013, 05:35 PM
  5. Save to two different locations
    By phoztek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2011, 01:53 PM
  6. Save to multiple locations
    By flourboy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-04-2007, 04:08 PM
  7. [SOLVED] request macro to save file to multiple, separate locations
    By Joseph Spain in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-26-2005, 10:46 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