LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Workbook_BeforeClose Event (help!)

Hi everybody,
I'm a newbie in VBA and this is my first post in this excellent
group...

I already saw Chip's explanation about events - http://www.cpearson.com/excel/events.htm
- as well as many posts concerning this subject but haven´t yet
figured out how to implement a Workbook_BeforeClose with the Excel's
native behaviour when having multiple workbooks open.
I have a workbook were I need to do some validations before saving and
closing (hidding some sheets, protecting some cells...).
If there isn't another book open I can use Workbook_BeforeClose on the
ThisWorkbook module to do those things without problems but if I have
more workbooks open I don't really know how to do that.

Can anyone help me, please?

Thanks for your time.

 
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
Problem with Workbook_BeforeClose event [email protected] Excel Programming 2 September 12th 05 08:23 PM
Workbook_BeforeClose event and OnTime method Bejaz Excel Programming 3 September 5th 05 03:04 AM
Workbook_BeforeClose event is not canceled Mircea Pleteriu[_2_] Excel Programming 1 June 8th 05 08:47 AM
Workbook_Beforeclose vs BeforeClose Event Juan Pablo González Excel Programming 3 February 2nd 04 12:17 AM
Workbook_BeforeClose Event Shatin Excel Programming 2 January 24th 04 03:50 AM


All times are GMT +1. The time now is 05:27 AM.

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"