ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel 2007 vba - Refresh after web query? (https://www.excelbanter.com/excel-programming/406739-excel-2007-vba-refresh-after-web-query.html)

Rui Brito

Excel 2007 vba - Refresh after web query?
 
I'm new to vba, learning from trying.
Wrote a macro that:
1. pastes a value into a cell
2. queries a web page based on pasted value (query parameter: 001). Example:
"http:\\mysite.com\products\prod.php?id=001"
3. handles the imported data.
It works fine but I cannot figure out how to delay step 3. thus allowing
complete refresh of external data. Actually, it handles old data from a
previous query.
Any hint?
Thank you
Rui

Tim Williams

Excel 2007 vba - Refresh after web query?
 
Web queries have a "run in background" (?) parameter - set that to False.

Tim

"Rui Brito" <Rui wrote in message
...
I'm new to vba, learning from trying.
Wrote a macro that:
1. pastes a value into a cell
2. queries a web page based on pasted value (query parameter: 001).
Example:
"http:\\mysite.com\products\prod.php?id=001"
3. handles the imported data.
It works fine but I cannot figure out how to delay step 3. thus allowing
complete refresh of external data. Actually, it handles old data from a
previous query.
Any hint?
Thank you
Rui





All times are GMT +1. The time now is 11:47 AM.

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