+ Reply to Thread
Results 1 to 3 of 3

Macro to not save a file if it already exists

  1. #1
    Registered User
    Join Date
    09-23-2009
    Location
    liverpool, england
    MS-Off Ver
    Excel 2003
    Posts
    78

    Macro to not save a file if it already exists

    Hello I have a macro that saves data to a specific file path, but if this already exists i want it to not save the data. A bit of the line of code is

    Please Login or Register  to view this content.
    Can anybody give me any lines of code which would make it not carry out the save command? Any help really would be apprceiated.


    Kind regards

    Joe
    Last edited by sandbach; 10-31-2010 at 04:29 PM.

  2. #2
    Registered User
    Join Date
    07-27-2010
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Macro to not save a file if it already exists

    Hi sandbach,

    The Dir() function will do this for you:
    Please Login or Register  to view this content.

    Thanks,
    Dom

  3. #3
    Registered User
    Join Date
    09-23-2009
    Location
    liverpool, england
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: Macro to not save a file if it already exists

    Thanks Dom,

    That is fantastic!!!!!!!!!!!!!

+ 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