Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
J_J J_J is offline
external usenet poster
 
Posts: 58
Default autosave before close

Hi,
Can someone please remind me the VBA code for autosaving the active workbook
with the same name without beeing prompt by windows ("do you want to save
the changes you made to "aaa.xls") ?
TIA
J_J


  #2   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default autosave before close

hi,
In the workbooks before close event put
private sub
ActiveWorkbook.Save
end sub

-----Original Message-----
Hi,
Can someone please remind me the VBA code for autosaving

the active workbook
with the same name without beeing prompt by windows ("do

you want to save
the changes you made to "aaa.xls") ?
TIA
J_J


.

  #3   Report Post  
Posted to microsoft.public.excel.programming
J_J J_J is offline
external usenet poster
 
Posts: 58
Default autosave before close

Thanks anonymous,
Unfortunately now when I use the below code
--------
Private Sub Workbook_BeforeClose()
ActiveWorkbook.Save
End Sub
--------
I am getting a Compile error with
"Procedure declaration does not match description or event procedure having
the same name"
Hope we can correct this.
J_J

wrote in message
...
hi,
In the workbooks before close event put
private sub
ActiveWorkbook.Save
end sub

-----Original Message-----
Hi,
Can someone please remind me the VBA code for autosaving

the active workbook
with the same name without beeing prompt by windows ("do

you want to save
the changes you made to "aaa.xls") ?
TIA
J_J


.



  #4   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default autosave before close

hi again,
I just posted your code in a blank workbook and tested it.
open and closed it 3 times and adding non-sense data to it
and each time it auto saved.
the command ActiveWorkbook.save i use in many many file
without flaw.
i am at a loss.
i don't know what the error message means nor what to do
about it.
repost the code. maybe someone else can explain it. I
would like to know myself.


-----Original Message-----
Thanks anonymous,
Unfortunately now when I use the below code
--------
Private Sub Workbook_BeforeClose()
ActiveWorkbook.Save
End Sub
--------
I am getting a Compile error with
"Procedure declaration does not match description or

event procedure having
the same name"
Hope we can correct this.
J_J

wrote in message
...
hi,
In the workbooks before close event put
private sub
ActiveWorkbook.Save
end sub

-----Original Message-----
Hi,
Can someone please remind me the VBA code for

autosaving
the active workbook
with the same name without beeing prompt by windows

("do
you want to save
the changes you made to "aaa.xls") ?
TIA
J_J


.



.

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
Opened Autosave but when closing workbook Autosave closes itself Ken Excel Worksheet Functions 0 October 29th 05 05:11 PM
Excel shoud not close all active books when clicking close button technomike Excel Discussion (Misc queries) 0 June 10th 05 05:35 PM
excel - Windows close button (x) should only close active workboo. CoffeeAdict Setting up and Configuration of Excel 3 February 8th 05 04:30 AM
Removing AUTOSAVE.XLS(AUTOSAVE.XLA) from VBA editor??? belblanco[_13_] Excel Programming 5 July 17th 04 10:24 AM
Removing AUTOSAVE.XLS(AUTOSAVE.XLA) from VBA editor??? belblanco[_14_] Excel Programming 0 July 13th 04 07:23 PM


All times are GMT +1. The time now is 06:55 AM.

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"