Closed Thread
Results 1 to 1 of 1

How to check if a file exists, and display a custom dialog box

Hybrid View

CantripGhost How to check if a file... 01-19-2011, 11:35 AM
  1. #1
    Registered User
    Join Date
    11-17-2010
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2003
    Posts
    12

    How to check if a file exists, and display a custom dialog box

    I would like to make a macro that takes information from two cells (a date and a product number, for example) and generates a file name based on that information.

    Then, the macro will save the file on a networked drive with the generated name.

    Here is the functionality that i do not know how to do:
    Before the file is saved, i would like the macro to check if a file by that name already exists. If it does exist, i would like the macro to alert the user and ask if they would like to overwrite the file (just like it normally would, except with some slightly altered language from the generic overwrite dialog box). any ideas?
    Last edited by CantripGhost; 01-19-2011 at 11:38 AM.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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