Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Auto close .csv files | Excel Discussion (Misc queries) | |||
Auto close userform | Excel Discussion (Misc queries) | |||
auto close userform | Excel Discussion (Misc queries) | |||
Auto Open, Refresh, Save, Close | Excel Discussion (Misc queries) | |||
Auto-save worksheet on close? | Excel Discussion (Misc queries) |