Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 148
Default Auto_open and more....

Excel has a command AUTO_OPEN
I would like to write a macro that will save the current workbook just
before it closes.
Where can I find all these nifty commands.Thanks

  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 148
Default Auto_open and more....

Thanks a pile


"Mike" wrote:

in tools-macro-visual basic editor. navigate to 'Workbook' and then in the
dropdown select the 'before close' option and use the following

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

"pcor" wrote:

Excel has a command AUTO_OPEN
I would like to write a macro that will save the current workbook just
before it closes.
Where can I find all these nifty commands.Thanks

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 152
Default Auto_open and more....

Workbook_Open() replaced AUTO_OPEN a few versions back. AUTO_OPEN is retained
for backward capability and eventually will no longer be recognized. Any code
utilizing AUTO_OPEN will no longer operate when that occurs!!!
Lou

"Mike" wrote:

in tools-macro-visual basic editor. navigate to 'Workbook' and then in the
dropdown select the 'before close' option and use the following

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

"pcor" wrote:

Excel has a command AUTO_OPEN
I would like to write a macro that will save the current workbook just
before it closes.
Where can I find all these nifty commands.Thanks

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



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