Not really seeing the point of this one.
If you have already saved your work before closing, Excel will not prompt you to save since there is nothing to save.
If you have changed your workbook since the last save, then Excel will prompt for the workbook to save.
In Effect you would have to cancel the Excel prompt by using:<pre>
Application.DisplayAlerts = false</pre>
Then you would have do a Yes/No msgbox, get the result, do an If...Then
to throw up the "save as" dialogue box. The only difference now is there won't be a "cancel" button on the msgbox.
In effect, all you'll have done is increased the time to close down and save the workbook because you're not using the built in features.
My advice is simply to fake it, use the built-in Excel check and tell your client that you've coded it.
- Sometimes it is OK to call the client an idiot.
_________________<font color = green> Mark O'Brien
This message was edited by Mark O'Brien on 2002-02-22 09:47
This message was edited by Mark O'Brien on 2002-02-22 09:48