Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 135
Default automatically close form before closing

I am using vba to open an xl file, make changes, and then close it. To
automatically save the changes, I used:
WB.Close savechanges:=True

The problem is that a form pops up with a Workbook_BeforeClose sub (like a
splash screen). I need to close that form before the savechanges dialog.

The form is called frmEndBox, and the button to close it is cmdSubmit. I
need something like
WB.Close [frmEndBox.cmdSubmit.Value=True] savechanges:=True

Hopefully someone can help with this.

Thanks,
~ Horatio
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
close workbooks without closing excel ? Clute Excel Discussion (Misc queries) 2 August 5th 06 09:50 PM
How do I close excell worksheet without closing others still open John Excel Worksheet Functions 2 July 20th 06 06:17 PM
close workbook without closing excel and stop recursive function chris Excel Discussion (Misc queries) 3 July 10th 06 08:23 PM
Cant get a combo box to update without closing form justin Excel Discussion (Misc queries) 0 May 17th 06 09:06 PM
Closing a Form Mike Excel Discussion (Misc queries) 2 March 14th 06 01:09 PM


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