Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
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??


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Workbook_BeforeClose

I'm confused about what icon you're clicking.

Are you just closing one workbook or are you closing the excel application?

In any case, you didn't share the error that appears.



Andrzej wrote:

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??


--

Dave Peterson
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
Workbook_BeforeClose Ed Davis[_2_] Excel Discussion (Misc queries) 21 September 26th 09 01:01 AM
Workbook_BeforeClose Question Sashi Excel Worksheet Functions 7 July 26th 07 08:36 PM
Workbook_BeforeClose PO Excel Programming 2 January 30th 05 05:07 PM
Workbook_BeforeClose Don Guillett[_4_] Excel Programming 1 August 31st 04 02:27 PM
Workbook_BeforeClose JimP Excel Programming 1 July 5th 04 10:39 PM


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