Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Error Handling with Web Queries

I have a program that collects data from web queries (the filename of the
webquery changes every hour, I use ontime on 5 minute intervals to always get
the newest data from the newest hour.)

Anyway, there's always a chance on the overlap that the new hour may not
have been generated yet. As such, occassionally the webquery will report:

"Connection was available but no data was there"

The problem with this is that it locks excel until someone clicks ok (ie the
timer will no longer run). Is there anyway I can disable the message from
appearing, or atleast not lock the program?

Using on error resume next or on error resume 0 in the procedure does not
seem to help.

Any ideas?

Thanks again

Matt Lawson
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Error Handling with Web Queries

Haven't tried it, but you could try adding Application.DisplayAlerts = False
to the code

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Matt Lawson" wrote in message
...
I have a program that collects data from web queries (the filename of the
webquery changes every hour, I use ontime on 5 minute intervals to always

get
the newest data from the newest hour.)

Anyway, there's always a chance on the overlap that the new hour may not
have been generated yet. As such, occassionally the webquery will report:

"Connection was available but no data was there"

The problem with this is that it locks excel until someone clicks ok (ie

the
timer will no longer run). Is there anyway I can disable the message from
appearing, or atleast not lock the program?

Using on error resume next or on error resume 0 in the procedure does not
seem to help.

Any ideas?

Thanks again

Matt Lawson



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Error Handling with Web Queries

I tried that, seems like a good idea.

However, it didn't seem to work.

if it helps, it's not a normal error message that pops up.

It's the office assistant with a triangular yellow sign with an excalamation
mark.


"Bob Phillips" wrote:

Haven't tried it, but you could try adding Application.DisplayAlerts = False
to the code

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Matt Lawson" wrote in message
...
I have a program that collects data from web queries (the filename of the
webquery changes every hour, I use ontime on 5 minute intervals to always

get
the newest data from the newest hour.)

Anyway, there's always a chance on the overlap that the new hour may not
have been generated yet. As such, occassionally the webquery will report:

"Connection was available but no data was there"

The problem with this is that it locks excel until someone clicks ok (ie

the
timer will no longer run). Is there anyway I can disable the message from
appearing, or atleast not lock the program?

Using on error resume next or on error resume 0 in the procedure does not
seem to help.

Any ideas?

Thanks again

Matt Lawson




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
error handling off?? Tom Ogilvy Excel Programming 0 August 19th 04 04:31 PM
Error handling Gareth Excel Programming 1 July 11th 04 07:34 PM
Error Handling AA2e72E[_2_] Excel Programming 0 April 27th 04 04:06 PM
Error handling Tim C Excel Programming 1 October 7th 03 10:00 PM
Error handling John Pierce Excel Programming 3 October 3rd 03 12:17 PM


All times are GMT +1. The time now is 01:07 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"