LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 170
Default Auto save and close

Hi,
I have been using a simple Macro to save and close a workbook in Excel 2003
without problems.
Sub cs()
'
' Rem: Saves & closes sheet.

ActiveWorkbook.Save
ActiveWorkbook.Close

End Sub

After changing to Excel 2007 this Macro closes Excel after closing the
workbook and I have tried various options to stop this without success. If I
select and run the macro from the drop-down box it works, but when assigned
to an auto shape it does not. Has anyone got an answer to this?
Frank.

 
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
Auto save as text and close in code? GD New Users to Excel 2 May 18th 09 08:33 PM
save and close Mad Man Excel Discussion (Misc queries) 2 April 2nd 09 01:25 PM
Auto run maco/change behavior of save/close m schmitz Excel Discussion (Misc queries) 0 February 10th 06 04:00 AM
Auto Open, Refresh, Save, Close Jimmycooker Excel Discussion (Misc queries) 0 February 6th 06 01:34 PM
Auto-save worksheet on close? [email protected] Excel Discussion (Misc queries) 1 January 2nd 06 02:12 PM


All times are GMT +1. The time now is 12:45 PM.

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"