Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

External data won't refresh in Excel

Status
Not open for further replies.

joben

IS-IT--Management
Jun 13, 2001
4
SE
Hi!
I'm trying to write a script in W2k (.wsf) that automatically prints an Excel-file.

I have been able to open the file, set the default printer, print the file, and close it.

The problem is, that the Excel-file contains a link to data in an Access-database, and the data doesn't update when my script opens the file.

When I open the Excel-file the data updates just fine by itself, so it seems that the property "Autorefresh external data" won't work if the file is opened by a script.

Any clues to how to update the data from the script? Something like oXL.ActiveWorkBook.RefreshData ???

TIA

/Joakim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top