A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Macro: Exit active workbook without save?



 
 
Thread Tools Display Modes
  #1  
Old June 14th, 2004, 05:37 PM
Param
external usenet poster
 
Posts: n/a
Default Macro: Exit active workbook without save?

How to create a maco button that exit the active workbook without saving?
Thanks
  #2  
Old June 14th, 2004, 05:58 PM
Frank Kabel
external usenet poster
 
Posts: n/a
Default Macro: Exit active workbook without save?

Hi
try
sub foo()
with activeworkbook
.saved=true
.close
end with
end sub

--
Regards
Frank Kabel
Frankfurt, Germany


Param wrote:
How to create a maco button that exit the active workbook without
saving? Thanks

  #3  
Old June 14th, 2004, 07:02 PM
Vasant Nanavati
external usenet poster
 
Posts: n/a
Default Macro: Exit active workbook without save?

Or simply:

ThisWorkbook .Close False

--

Vasant


"Frank Kabel" wrote in message
...
Hi
try
sub foo()
with activeworkbook
.saved=true
.close
end with
end sub

--
Regards
Frank Kabel
Frankfurt, Germany


Param wrote:
How to create a maco button that exit the active workbook without
saving? Thanks



  #4  
Old May 20th, 2005, 06:47 AM
Don
external usenet poster
 
Posts: n/a
Default

Thanks to both of you for the quick responses. I did get your responses but
have been unable to get back on this site until tonight to thank you.....my
apologies for the lateness of this thank you but know your help is greatly
appreciated.

Don

"Vasant Nanavati" wrote:

Or simply:

ThisWorkbook .Close False

--

Vasant


"Frank Kabel" wrote in message
...
Hi
try
sub foo()
with activeworkbook
.saved=true
.close
end with
end sub

--
Regards
Frank Kabel
Frankfurt, Germany


Param wrote:
How to create a maco button that exit the active workbook without
saving? Thanks




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:04 PM.


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