Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 504
Default Problem with Auto Close module

I have written code into a Workbook Open module.

Application.OnTime aTime2, Procedu="closeFile2"

the problem is, if I set it up to close after 1 minute but close it manually
before this time. It seems that after 1 minute even though the workbook is
close it executes above anyway and opens up the file again (and automatically
shuts it) - in a loop

I presume I am missing a lone of code that only executes above if the file
is open?

--
Kevin
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,489
Default Problem with Auto Close module

Hi,

Have a read of Chip's page on OnTime
http://www.cpearson.com/excel/OnTime.aspx

Cheers
Andy

Kevin wrote:
I have written code into a Workbook Open module.

Application.OnTime aTime2, Procedu="closeFile2"

the problem is, if I set it up to close after 1 minute but close it manually
before this time. It seems that after 1 minute even though the workbook is
close it executes above anyway and opens up the file again (and automatically
shuts it) - in a loop

I presume I am missing a lone of code that only executes above if the file
is open?


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
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
Auto close .csv files saman110 via OfficeKB.com Excel Discussion (Misc queries) 2 September 21st 07 11:00 PM
Auto close userform AOU Excel Discussion (Misc queries) 0 December 28th 06 06:54 PM
auto close userform AOU Excel Discussion (Misc queries) 0 December 23rd 06 10:36 PM
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 02:36 PM.

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"