+ Reply to Thread
Results 1 to 3 of 3

Save file with new name without saving duplicate file with old name

  1. #1
    Forum Contributor
    Join Date
    07-27-2012
    Location
    Somerset, Kentucky
    MS-Off Ver
    Excel 2007
    Posts
    123

    Save file with new name without saving duplicate file with old name

    Say I have an excel file, "File1.xlsm". I want a VBA code, upon closure of the file, that will change the file name to "File1Ver2.xlsm". However, I don't want it to save a duplicate copy of the file under the old name. Anytime you "saveas" with a new name, it creates a new file, but leaves the old file under the old name. I want to change the name of the file without creating the duplicate with the old name. Hope this is clear.

  2. #2
    Forum Contributor
    Join Date
    07-27-2012
    Location
    Somerset, Kentucky
    MS-Off Ver
    Excel 2007
    Posts
    123

    Re: Save file with new name without saving duplicate file with old name

    Dug out the answer. Used a version of this:

    Please Login or Register  to view this content.
    Last edited by scrabtree23; 10-27-2015 at 05:22 PM.

  3. #3
    Registered User
    Join Date
    10-10-2015
    Location
    Hoboken, Antwerp, Belgium
    MS-Off Ver
    2010
    Posts
    93

    Re: Save file with new name without saving duplicate file with old name

    Hi,

    It's clear what you want. I think you just have to close the workbook like this

    Close without saving with no error alert:
    Please Login or Register  to view this content.
    Greetings,

    Cheetahke

+ 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] Addition to macro to check for duplicate file when saving as pdf
    By thecdnmole in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-13-2014, 10:47 PM
  2. File save as VBA not saving
    By johnny_p in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-20-2013, 11:16 AM
  3. Creating a .txt file extracting information from a Excel file saving as .resx file
    By AbdallahHajbed in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-19-2012, 09:00 AM
  4. Saving a File using File Dialog Save As
    By tenk283 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-20-2010, 02:08 AM
  5. Save a file without saving the macro
    By ina in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-15-2006, 03:00 AM
  6. [SOLVED] Save as prompt missing saving a .csv file
    By bdw in forum Excel General
    Replies: 1
    Last Post: 05-09-2006, 05:15 PM
  7. Replies: 2
    Last Post: 02-01-2005, 07:06 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