ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VB coding (https://www.excelbanter.com/excel-programming/388623-vbulletin-coding.html)

ndn14

VB coding
 
I need to create a macro that opens an excel file, will click on "enable
automatic refresh," process the webqueries, and than save and close the file.
The issue with the recording of the macro is that it will open the file
however it will not recognize the query refresh option.

Don Guillett

VB coding
 
try something like
for each q in thisworkbook.querytables
q.refresh
next q

--
Don Guillett
SalesAid Software

"ndn14" wrote in message
...
I need to create a macro that opens an excel file, will click on "enable
automatic refresh," process the webqueries, and than save and close the
file.
The issue with the recording of the macro is that it will open the file
however it will not recognize the query refresh option.




All times are GMT +1. The time now is 05:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com