+ Reply to Thread
Results 1 to 3 of 3

Save As-Overwrite existing File

  1. #1
    Registered User
    Join Date
    08-24-2012
    Location
    nowhere
    MS-Off Ver
    Excel 2003
    Posts
    2

    Save As-Overwrite existing File

    Anyone have recommendations on how to avoid getting an error when a user tries to rename a file the user is initially trying to save? My file name is stored in cell 3,4. The code then takes whatever is in that cell and uses it as the file name to save. This code works fine if the file doesn't exist. If it does exist and the user does not overwrite the existing file and chooses to rename the file something else I then run into a problem. Perhaps there is a better way to do the code to get the same results.

    Please Login or Register  to view this content.
    ***this is the function

    Please Login or Register  to view this content.

    at the top of my module is

    Please Login or Register  to view this content.
    Last edited by loulorisgomez; 10-02-2012 at 10:40 PM.

  2. #2
    Forum Contributor
    Join Date
    08-01-2012
    Location
    Tampa
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: Save As-Overwrite existing File

    If your problem is dealing with the alerts, you can disable the alerts before you save by using:

    Please Login or Register  to view this content.
    And then re-enable them with

    Please Login or Register  to view this content.
    It should just overwrite the file

  3. #3
    Registered User
    Join Date
    08-24-2012
    Location
    nowhere
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Save As-Overwrite existing File

    That could work. I'm not sure if writing over a file is the best idea but I think I may try that for a while. Any other ideas are appreciated.

    Thank you.

+ 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