+ Reply to Thread
Results 1 to 2 of 2

VBA Code Help - If file overwritten, continue. If file not overwritten, show warning.

  1. #1
    Registered User
    Join Date
    07-16-2013
    Location
    Boston, MA
    MS-Off Ver
    Excel 2010
    Posts
    8

    VBA Code Help - If file overwritten, continue. If file not overwritten, show warning.

    I'm trying to write code so that my workbook is saved and then attached to an email. If the file already exists, however, and the file is overwritten, I want the script to continue. If the file is not overwritten, I want the script to display a message box, and then continue.

    Here is the script I have so far, but I'm doing something wrong. Can someone point out what I need to do to fix it?

    Please Login or Register  to view this content.
    Thanks so much!

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: VBA Code Help - If file overwritten, continue. If file not overwritten, show warning.

    Hi,


    Untested but maybe

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. Recovering overwritten file
    By Bostrolicious in forum Excel General
    Replies: 4
    Last Post: 07-13-2014, 11:37 PM
  2. overwritten file
    By jap786 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-03-2006, 11:10 AM
  3. [SOLVED] Can I recover an Excel file that was overwritten w/ a blank file?
    By Bri_flies in forum Excel General
    Replies: 1
    Last Post: 10-25-2005, 10:05 AM
  4. [SOLVED] Recovering An Overwritten File
    By Need To Recover A Spreadsheet in forum Excel General
    Replies: 1
    Last Post: 07-21-2005, 12:05 PM
  5. [SOLVED] Can you recover a file that was overwritten
    By Larry in forum Excel General
    Replies: 1
    Last Post: 02-01-2005, 12: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