Thread
:
Refreshing Web Query Problem
View Single Post
#
2
Posted to microsoft.public.excel.programming
Don Guillett[_4_]
external usenet poster
Posts: 2,337
Refreshing Web Query Problem
try
application.enableevents=false
code
application.enableevents=true
--
Don Guillett
SalesAid Software
"andym" wrote in message
oups.com...
Dear All,
this seems like a common problem, but I have not seen a definiate
solution yet - so any help would be most appreciated.
I have some code that does a vlookup where the source data is via a web
query. Occassionally I need to refresh the web query to update the
data.
However, it appears that the code completes before the page is
refreshed, so the old data is still used in the vlookup.
When I manually step through the process (F8) it completes perfectly as
I presume the extra time I take enables the web query to refresh in
time.
Any ideas how I can ensure that the refreshing is completed before the
remainder of the code is finalised?
Regards,
andym
Reply With Quote
Don Guillett[_4_]
View Public Profile
Find all posts by Don Guillett[_4_]