Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
XP XP is offline
external usenet poster
 
Posts: 389
Default Effects of certain code on file(s) being closed

Using Office 2003 and Window XP;

If the following are set in a file as it closes:

Application.DisplayAlerts = False
Application.EnableEvents = False

1. Will this affect the saved file in any way the next time it is opened?
2. Will it affect any other currently open files in the same instance?

Thanks much for your assistance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Effects of certain code on file(s) being closed

These are application settings. They're not stored with any workbook.

The .displayalerts will stay false until you change it or the code ends.
(Although, I've always toggled it back to True when I wanted it true.)

The .enableevents setting will stay off (or on) until you change it (or close
the excel application and reopen it).

So the .displayalerts =false probably won't have any effect on any other
workbook.

But the .enableevents=false would stop any event from firing in any workbook
that's currently opened (or even opened later). This can be a useful setting --
if that's what you really want.

XP wrote:

Using Office 2003 and Window XP;

If the following are set in a file as it closes:

Application.DisplayAlerts = False
Application.EnableEvents = False

1. Will this affect the saved file in any way the next time it is opened?
2. Will it affect any other currently open files in the same instance?

Thanks much for your assistance.


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel VBA Key-Code Effects Rendered by vbKeyLButton [email protected] Excel Programming 0 June 11th 07 04:08 PM
How to change closed file name - Error: file not found PGM Excel Programming 5 April 18th 06 02:07 PM
Excel is not asking to save a changed file when the file is closed Ron Excel Discussion (Misc queries) 2 March 14th 05 01:05 AM
VBA - on a button event, open another closed file, post changes, close file Fio Excel Programming 0 March 1st 04 01:08 PM


All times are GMT +1. The time now is 09:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"