LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Run Macro on close

Sub Auto_Close()
'your code here
End Sub

that is how i do it :-)
(the auto_close makes it run at close)
"Donnie" wrote:

How do I phrase the VBA to run a macro on closing the spreadsheet?

Any ideas?

Thanks
Donnie

 
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
Macro to close excel okanem Excel Discussion (Misc queries) 1 July 19th 05 10:01 AM
On Close macro JudithJubilee[_2_] Excel Programming 14 March 8th 05 09:40 AM
Close Workbook from Macro Lou Excel Programming 2 May 18th 04 02:26 AM
Macro Close 2 Ronbo Excel Programming 1 May 5th 04 10:11 PM
Close Macro Ronbo Excel Programming 1 May 5th 04 08:33 PM


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