Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Workbook_BeforeClose doesn't work!!!

Hi I am using Excel 2002 SP3, so every workbook opens in the same excel
window. And I am trying to use workbook_beforeClose method to execute
some action. And as the action in workbook_beforeClose method executes
when I close the whole excel window, It does NOT work when i close only
current workbook!!!
what may be the problem???
regards
wooda

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 573
Default Workbook_BeforeClose doesn't work!!!

Is the macro stored in the sheet, or in a module? I believe that for
that to work, it has to be stored in the sheet. At least it did in 2000.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Workbook_BeforeClose doesn't work!!!

Workbook_BeforeClose is stored in the ThisWorkbook Module.

--
Regards,
Tom Ogilvy

"davegb" wrote in message
oups.com...
Is the macro stored in the sheet, or in a module? I believe that for
that to work, it has to be stored in the sheet. At least it did in 2000.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Workbook_BeforeClose doesn't work!!!

Can you show us the code?

--

HTH

RP
(remove nothere from the email address if mailing direct)


wrote in message
oups.com...
Hi I am using Excel 2002 SP3, so every workbook opens in the same excel
window. And I am trying to use workbook_beforeClose method to execute
some action. And as the action in workbook_beforeClose method executes
when I close the whole excel window, It does NOT work when i close only
current workbook!!!
what may be the problem???
regards
wooda



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(Cancel As Boolean) - Cancel won't work gpmichal Setting up and Configuration of Excel 1 May 12th 09 02:33 AM
Workbook_BeforeClose Andrzej Excel Programming 1 June 12th 05 10:01 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


All times are GMT +1. The time now is 02:20 PM.

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"