Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default closing workbook

hello people,

in my workbook code, I can make things happen when the
book starts up using...
Private Sub Workbook_Open()

It may be a simple question, but how do I do the opposite
for when the workbook closes?

thanks a lot you clever folk,

Sam
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default closing workbook

Sam,

You can use the Workbook_BeforeClose event procedure, or you can
name a macro Auto_Close.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"Sam Dickins" wrote in
message ...
hello people,

in my workbook code, I can make things happen when the
book starts up using...
Private Sub Workbook_Open()

It may be a simple question, but how do I do the opposite
for when the workbook closes?

thanks a lot you clever folk,

Sam



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
Closing a workbook N1KO Excel Discussion (Misc queries) 0 February 12th 09 03:51 PM
Closing a protected workbook CurlyDave Excel Discussion (Misc queries) 5 February 8th 09 09:11 PM
Closing only one excel workbook Carollea Excel Discussion (Misc queries) 3 March 28th 07 01:42 PM
Closing a workbook upon opening another Dave New Users to Excel 3 January 3rd 07 09:57 PM
Help with closing down a workbook?? Don Excel Worksheet Functions 1 May 9th 05 04:05 AM


All times are GMT +1. The time now is 09:30 AM.

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"