View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tim Williams Tim Williams is offline
external usenet poster
 
Posts: 1,588
Default 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