Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default How to bypass Excel error message

I have a macro that closes all files but everytime that I touch a file, the
Save file message from Excel appears. Is there a way I can bypass this error
and force Excel to close the file without saving it?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default How to bypass Excel error message

You're closing the workbooks in code?

someworkbookvariable.close savechanges:=false 'or true???


matelot wrote:

I have a macro that closes all files but everytime that I touch a file, the
Save file message from Excel appears. Is there a way I can bypass this error
and force Excel to close the file without saving it?

Thanks


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default How to bypass Excel error message

Dave,
Thanks for the code. It worked exactly without Excel prompting the save
textbox.

"Dave Peterson" wrote:

You're closing the workbooks in code?

someworkbookvariable.close savechanges:=false 'or true???


matelot wrote:

I have a macro that closes all files but everytime that I touch a file, the
Save file message from Excel appears. Is there a way I can bypass this error
and force Excel to close the file without saving it?

Thanks


--

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 Error Message LCG Excel Discussion (Misc queries) 1 October 20th 06 08:46 PM
How do I bypass the message to save when closing a file by macro? [email protected] Excel Programming 3 August 21st 06 09:01 PM
replace VBA run-time error message with custom message BEEJAY Excel Programming 13 July 14th 06 03:59 PM
Bypass the "Macros may contain viruses . . ." message Al Excel Programming 5 October 21st 05 07:38 PM
Excel XP error message Run Time Error 91 Lenny[_3_] Excel Programming 1 March 3rd 05 10:15 PM


All times are GMT +1. The time now is 02:51 PM.

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"