View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] carlos_almeida@netvisao.pt is offline
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.