Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6191221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:43:33+00:00 2026-05-24T02:43:33+00:00

For those who don’t like images: Close logFile Application.DisplayAlerts = False If WasOpened2 Then

  • 0

Before setting Application.DisplayAlerts = False
It gets set to false
Yet it still gives me the save as!

For those who don’t like images:

  Close logFile
  Application.DisplayAlerts = False 
  If WasOpened2 Then Workbooks(FilenameNoPath(FoundFiles(i))).Close False 
  Application.DisplayAlerts = True

Application.DisplayAlerts = False should suppress any and all alerts from excel. Furthermore, I’m led to believe that passing False to .Close should automatically not save changes on the workbook. Yet I still get a prompt. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T02:43:34+00:00Added an answer on May 24, 2026 at 2:43 am

    I had the inkling that another Excel add-in that was running alongside could be causing the issue.
    Coworker suggested to wrap with code to suppress events. This worked:

      Application.EnableEvents = False
      Application.DisplayAlerts = False
      If WasOpened2 Then Workbooks(FilenameNoPath(FoundFiles(i))).Close False 
      Application.DisplayAlerts = True
      Application.EnableEvents = True
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok, so I wrote an stl-like algorithm called cartesian_product . For those who don't
This is a bit confused question for those who don't now advanced SQL... However.
My current solution will suck sometimes EDIT For those who don't understand,see this example:
Is there a reliable equivalent of xkill for Windows? For those who don't know
For those who like a good WPF binding challenge: I have a nearly functional
For those who don't know the model. You can read this pdf . I
For those who don't know GNASH is an open source flash movie player. It
I'm learning processing (for those who don't know its a java-based language geared towards
Short Version For those who don't have the time to read my reasoning for
I have two Resources files under App_GlobalResources MyApp.resx MyApp.sv.resx for those who don't know:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.