Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
TTN TTN is offline
external usenet poster
 
Posts: 1
Default unable to save current workbook within WorkbookBeforeClose


I am trying to save the current workbook within
WorkbookBeforeClose, but the workbook is not saving.


Is this a bug?
And how do I workaround this

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default unable to save current workbook within WorkbookBeforeClose

As always, Post your code

--
Don Guillett
SalesAid Software

"TTN" wrote in message
...

I am trying to save the current workbook within
WorkbookBeforeClose, but the workbook is not saving.


Is this a bug?
And how do I workaround this?


------------------------------------------------
~~ Message posted from
http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default unable to save current workbook within WorkbookBeforeClose

What code are you using?

it should be

ThisWorkbook.save

-----Original Message-----

I am trying to save the current workbook within
WorkbookBeforeClose, but the workbook is not saving.


Is this a bug?
And how do I workaround this?


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from

http://www.ExcelForum.com/

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default unable to save current workbook within WorkbookBeforeClose

Try this

Private Sub Workbook_BeforeClose(Cancel As Boolean)
ThisWorkbook.Save
End Sub


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"TTN" wrote in message ...

I am trying to save the current workbook within
WorkbookBeforeClose, but the workbook is not saving.


Is this a bug?
And how do I workaround this?


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default unable to save current workbook within WorkbookBeforeClose


The WorkbookBeforeClose is an application level event in my com addi
with the following signatur

Private Sub Excel_WorkbookBeforeClose(ByVal Wb As Excel.Workbook
Cancel As Boolean)

Wb.Save

End Sub



Calling the Wb.Save should save the workbook, but it didn't

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

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
Save As and save current numbers not the actual formulas and links Frank Menard Excel Discussion (Misc queries) 2 November 9th 06 09:18 PM
save workbook as current date using a macro ExcelJon Excel Discussion (Misc queries) 2 June 21st 06 03:05 AM
Save Workbook as Current Date/Time Jacob_F_Roecker Excel Discussion (Misc queries) 1 October 25th 05 09:37 AM
i made change in a current workbook and accidentally save it, can. angel Excel Discussion (Misc queries) 1 January 4th 05 01:11 AM
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:52 PM.

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"