View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Andrzej Andrzej is offline
external usenet poster
 
Posts: 22
Default Workbook_BeforeClose

I have in two files the same code for event:

Private Sub Workbook_BeforeClose(Cancel As Boolean)

...

and I when I have open both files...and when I click in icon to they will
close EXcela (this sharp) mistake appears.

Surely therefore that in every file are the same variables ... (..loops).

I know that I can close the first first and then second file but doesn't
there be no some trick??