Consulting

Results 1 to 3 of 3

Thread: Solved: Suppressing a message box

  1. #1
    VBAX Regular
    Joined
    Jun 2005
    Posts
    95
    Location

    Solved: Suppressing a message box

    Hey VBaxers,

    I have got code that saves my workbook to an external hard drive as a backup. Everytime I run this code I get a ballon that says this "file already exists, do you want to replace it?" Is there any way of suppressing this message only when I run this code? I will always want to replace the file and would rather not have to tell it "Yes" everytime. Thanx, ya'all!

    Scott

  2. #2
    ' Do not Show the Alerts from Excel

    Application.DisplayAlerts = False

    '' do your saving here

    'Now reset
    Application.DisplayAlerts = True

  3. #3
    VBAX Regular
    Joined
    Jun 2005
    Posts
    95
    Location
    shasur,

    Thank you, thank you! I knew there was a simple way of doing it and I thought I had done it before with a different workbook but I could not find it. Thanx again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •