Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Run macro on exit by red cross

I need to run a macro when an end user closes excel by the red cross.

I'm currently using: Workbook_BeforeClose(Cancel As Boolean)
This works fine when they close just the workbook.

(I also have a "close and change settings" button they should press)

Why do I need this? I am changing the settings from manual to automatic.

Thanks in advance,


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default Run macro on exit by red cross


The Workbook_BeforeClose event should run when Excel is closed.
Do you have Application.EnableEvents set to False?
--
Jim Cone
Portland, Oregon USA



"CarlosTapas"

wrote in message
I need to run a macro when an end user closes excel by the red cross.
I'm currently using: Workbook_BeforeClose(Cancel As Boolean)
This works fine when they close just the workbook.
(I also have a "close and change settings" button they should press)
Why do I need this? I am changing the settings from manual to automatic.
Thanks in advance,


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
Run a macro on exit More Macro Help Needed Excel Programming 3 January 11th 10 11:34 PM
Run Macro On Exit DM - NPS Excel Programming 1 January 7th 09 11:52 PM
Macro for cross referencing Mark Excel Programming 8 April 18th 08 09:37 AM
Exit via macro only? Brisbane Rob Excel Discussion (Misc queries) 1 October 13th 05 01:16 PM
on exit macro ditchy Excel Discussion (Misc queries) 2 May 3rd 05 12:11 AM


All times are GMT +1. The time now is 12:26 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"