+ Reply to Thread
Results 1 to 1 of 1

Dealing with errors in file save macro

  1. #1
    Registered User
    Join Date
    06-07-2010
    Location
    San Angelo, Texas
    MS-Off Ver
    Excel 2010
    Posts
    3

    Dealing with errors in file save macro

    I have a macro that will save a file to a particular directory with a date string attached to the end of the filename. It works great if there is no file with that name already in the target directory. But if the file does exist and you click that you don't want to overwrite, it sends you into the debug module.

    There are two things I would like to know how to do.

    1. Have the macro end if the file already exists so it won't go into the debug module.

    2. After it saves the file, I would like to remain in the original spreadsheet and not have it put me in the newley named spreadsheet.

    Here is my current code:

    Please Login or Register  to view this content.

    Any help would be greatly appreciated. I am not very experienced at programming.
    Last edited by arlu1201; 06-21-2012 at 05:16 AM. Reason: Use code tags in future.

+ 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