PC Review


Reply
Thread Tools Rate Thread

Auto open an .xls, refrsh data and close???

 
 
Erich93063
Guest
Posts: n/a
 
      6th Dec 2006
I have an Excel spreadsheet that gets external data from an ODBC data
source. I also have ANOTHER process that actually queries this Excel
spreadsheet via ODBC because this other application cannot directly
access the ODBC DSN that the Excel spreadsheet is attached to. (Don't
ask) :-)

OK, SO, Is there a way (scheduled task maybe) to have an automated
process that will 1) Open the Excel spreadsheet 2) Refresh the Data 3)
Close the spreadsheet but only after it is done refreshing the data?

I know that I can also set up the spreadsheet to automatically refresh
the data every time it is opened, so I can do that. If I do that, then
I guess I just need a way to auto open the file and then wait x amount
of seconds or minutes while the data refreshes (in this case can be
anywhere from 10 to 30 seconds or so and then close the file. That way
when my OTHER application goes to query the spreadsheet, it will have
the latest data.

THANKS!

E

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clear Auto Filter on Close (or open) =?Utf-8?B?S2FyaW4=?= Microsoft Excel Misc 3 23rd Aug 2007 06:16 PM
Auto Open, Print and Close a form Chris Ryner Microsoft Access Forms 1 19th Jan 2006 12:51 AM
auto open, auto close mike allen Microsoft Excel Programming 1 31st Dec 2004 09:20 AM
Auto close, Auto Open Joyce O Microsoft Access Form Coding 3 23rd May 2004 12:53 AM
auto close while MsgBox is open =?Utf-8?B?S2V2aW4=?= Microsoft Excel Programming 2 10th Nov 2003 12:36 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:56 PM.