Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 163
Default excel 2003 + macro help

Please tell me what i'm doing wrong, i want the entire excel document to
close??

Call Application.OnTime(Now + TimeValue("00:00:15"),
"ThisWorkbook.Auto_Close")

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default excel 2003 + macro help

You have the solution at your other post.

Neil Holden wrote:

Please tell me what i'm doing wrong, i want the entire excel document to
close??

Call Application.OnTime(Now + TimeValue("00:00:15"),
"ThisWorkbook.Auto_Close")

Thanks.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 236
Default excel 2003 + macro help

Don't know what the Auto_Close is about but this works...

Public Sub Test_Me()
On Error Resume Next
Application.OnTime Now + TimeValue("00:00:15"), "CloseMe"
End Sub

Public Sub CloseMe()
Application.ActiveWorkbook.Close
End Sub

where the CloseMe( ) procedure is in a standard module

--
Hope this helps.
If it does, please click the Yes button.
Thanks in advance for your feedback.
Gary Brown



"Neil Holden" wrote:

Please tell me what i'm doing wrong, i want the entire excel document to
close??

Call Application.OnTime(Now + TimeValue("00:00:15"),
"ThisWorkbook.Auto_Close")

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 + macro Neil Holden Excel Discussion (Misc queries) 4 March 15th 10 12:35 PM
Excel 2003 Macro vitamin.c Excel Discussion (Misc queries) 2 December 2nd 09 09:06 PM
how to run acces 2003 macro in excell 2003 macro gonggo Excel Discussion (Misc queries) 0 October 6th 09 11:45 AM
Macro - Help Please Excel 2003 Paul Excel Discussion (Misc queries) 6 June 23rd 09 03:19 AM
Help with a Macro - Excel 2003 Bob Smith Excel Worksheet Functions 3 June 19th 06 06:29 PM


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