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


Hello,

In my add-in I want to make same actions and depends on these actions
want to save or not the actual workbook. My problem is when I don't wan
to save the document I call "wb.close savechanges:=false", but afte
this method call WorkbookBeforeClose recursive.
I already implemented this in MS Word and it works, but in excel I hav
this problem.

Can you somebody help me, please.
Thanks in advance.

Karol Nekanovi

--
karne
-----------------------------------------------------------------------
karnek's Profile: http://www.excelforum.com/member.php...fo&userid=3657
View this thread: http://www.excelforum.com/showthread.php?threadid=56418

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default WorkbookBeforeClose recursive call

Roedd <<karnek wedi ysgrifennu:

Hello,

In my add-in I want to make same actions and depends on these actions
I want to save or not the actual workbook. My problem is when I don't
want to save the document I call "wb.close savechanges:=false", but
after this method call WorkbookBeforeClose recursive.
I already implemented this in MS Word and it works, but in excel I
have this problem.


Application.enableevents = false

<your code to save workbook

Application.enableevents = true


HTH

Rob


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
Help with Recursive Call? mark Excel Programming 9 May 25th 06 08:44 PM
WorkbookBeforeClose problem Frederick Chow Excel Programming 3 March 22nd 06 05:44 PM
WorkbookBeforeClose event is not canceled Mircea Pleteriu[_2_] Excel Programming 1 June 3rd 05 04:22 AM
question about Auto_Close and WorkbookBeforeClose Brian Murphy Excel Programming 8 October 9th 04 08:08 PM
Handling WorkbookBeforeClose and WorkbookBeforeSave Tom Ogilvy Excel Programming 0 September 19th 03 06:27 PM


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