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

I have some 'DeleteMenus' macros in the 'Workbook_BeforeClose'
procedure which works fine.

Private Sub Workbook_BeforeClose(Cancel As Boolean)

Run "DeleteModelsOptions"
Run "DeleteCostMenu"
Run "DeleteSpecListMenu"

ActiveWorkbook.Close savechanges:=False

End Sub


The problem I have is if a new workbook is opened as well and then
closed, it seems to run the 'DeleteMenus' macros of the other workbook,
therefore removing the menu's.

Don't understand why this is happening as the 'new'
workbook_beforeclose procedure is empty.

Help

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

Hi paul,

maybe this is your problem:
ActiveWorkbook.Close savechanges:=False


THISworkbook.close

arno
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 GB Excel Programming 2 March 1st 06 12:39 AM
Workbook_BeforeClose Andrzej Excel Programming 1 June 12th 05 10:01 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 09:14 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"