Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 300
Default BeforeClose, Auto_Close, and ActiveX Server

We have an Excel 97 spreadsheet that is attached to an ActiveX server. I am
now closing the server with an Auto_Close macro. But it runs this before
giving the user the message when the spreadsheet hasn't been saved, and if
the user chooses Cancel you are back in the workbook with the ActiveX
server no longer running. I tried putting the code in a BeforeClose, but
things seemed to work the same way.

The current situation isn't so bad. Before any calls to the server it
checks if still running, and if not it displays a MsgBox and the user
clicking ok starts it up again. Just I like to be as friendly as possible.

Don <donwiss at panix.com.
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
Starting Auto_Close macro based on an IF statement questor Excel Discussion (Misc queries) 4 February 25th 08 10:22 PM
beforeclose placement Curt Excel Discussion (Misc queries) 9 August 27th 07 08:00 PM
Auto_Close() needs help Phil Hageman[_3_] Excel Programming 3 November 19th 03 05:56 PM
Auto_Close Luc Benninger Excel Programming 2 October 14th 03 12:34 PM
BeforeClose event - Savings Mike[_40_] Excel Programming 3 September 24th 03 11:33 AM


All times are GMT +1. The time now is 08:12 PM.

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

About Us

"It's about Microsoft Excel"