+ Reply to Thread
Results 1 to 7 of 7

Macro to Save different sheets to different locations

  1. #1
    Registered User
    Join Date
    02-21-2014
    Location
    Europe
    MS-Off Ver
    Excel 2003
    Posts
    15

    Macro to Save different sheets to different locations

    Hello everyone.



    I have a workbook with a number of sheets say sheet1, sheet2, sheet3 etc..

    I need a macro to save:

    sheet1 to C:\data\sheet1\sheet1.xls

    sheet2 to C:\data\sheet2\sheet2.xls

    sheet3 to C:\data\sheet3\sheet3.xls



    folder sheet1, sheet2 and sheet3 cannot be replaced because they have special rights assigned to them.



    Your help will be greatly appreciated.



    Regards,

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

    Re: Macro to Save different sheets to different locations

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-21-2014
    Location
    Europe
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Macro to Save different sheets to different locations

    Apologies for this.

    This post has been cross posted on:
    https://www.mrexcel.com/board/thread...tions.1117607/

    Regards,
    Clint

  4. #4
    Registered User
    Join Date
    02-21-2014
    Location
    Europe
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Macro to Save different sheets to different locations

    Quote Originally Posted by davesexcel View Post
    Please Login or Register  to view this content.
    Thanks for this.
    when I did it, the copy is trying to update the links to the original file.
    what do I have to include in the code to copy only values and formats?

    thank you.

  5. #5
    Registered User
    Join Date
    02-21-2014
    Location
    Europe
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Macro to Save different sheets to different locations

    The saved file keeps creating a link to the source file

    I have tried everything to remove the link in the macro with no luck.

    Your help will be greatly appreciated.


    Please Login or Register  to view this content.
    Last edited by davesexcel; 12-12-2019 at 04:21 AM.

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

    Re: Macro to Save different sheets to different locations

    Try this

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    02-21-2014
    Location
    Europe
    MS-Off Ver
    Excel 2003
    Posts
    15
    Worked as a treat... Many thanks for your help..
    Last edited by davesexcel; 12-12-2019 at 08:03 AM.

+ 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. [SOLVED] VBA/Macro to auto save a file every 2 minutes to 2 locations
    By kduster67 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-15-2019, 01:42 AM
  2. Excel Macro - to move selected sheets no a new workbook and save, and save as pdf
    By manekankit in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2019, 01:42 PM
  3. [SOLVED] Trying to update comment in multiple locations and sheets from one macro
    By rocko82 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-30-2019, 01:28 PM
  4. Macro to save workbook in locations based on the date
    By hawk77EF in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-21-2015, 01:49 AM
  5. Replies: 4
    Last Post: 05-22-2013, 05:35 PM
  6. Macro to save csv in two different locations
    By njoneja in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-22-2012, 12:35 PM
  7. 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