Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I need an Excel workbook, which contains 4 ODBC queries, to be opened every night, and to be closed after all queries are refreshed (The queries retrieve some data from source restricted for most users, and save them in tables. For every table, a non-dynamic named range is defined - so users can use this workbook as source for their queries). All queries are set to be refreshed on open automatically. Refreshing them takes several seconds only. On this computer, I can set all queries to be refreshed without confirmation, and there is no VBA code in workbook. I can start the workbook at given time through Windows script, but is there some simple way to close the same workbook p.e. 5 minutes later? Thanks in advance! -- Arvi Laanemets ( My real mail address: arvi.laanemets<attarkon.ee ) |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() you can use the 'timer' function in vba to check for for when the file has been open for 5 mins, if it has then close it. -- MattShoreson ------------------------------------------------------------------------ MattShoreson's Profile: http://www.excelforum.com/member.php...fo&userid=3472 View this thread: http://www.excelforum.com/showthread...hreadid=530846 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Set macro to run automatically when closing workbook? | Excel Discussion (Misc queries) | |||
Find cell in Excel2000 workbook with link from another workbook? | Excel Discussion (Misc queries) | |||
Closing only one excel workbook | Excel Discussion (Misc queries) | |||
Prevent open excel windows from automatically closing. | Excel Discussion (Misc queries) | |||
closing excel after closing a workbook | Excel Programming |