A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Web Query Refersh Interval



 
 
Thread Tools Display Modes
  #1  
Old June 13th, 2004, 05:36 AM
Kelvin
external usenet poster
 
Posts: n/a
Default Web Query Refersh Interval

Hi

I am using Excel 2002 to get a web query, it work fine but the AUTOMATIC REFERESH Interval is min 1 minute.

I want set the Interval to 20 seconds, can any one help me about how to?

Using VBA ? can give some example code ?

Thank you

Kelvin
  #2  
Old June 13th, 2004, 06:07 AM
Frank Kabel
external usenet poster
 
Posts: n/a
Default Web Query Refersh Interval

Hi
AFAIK this is the best you can get. If you need shorter intervals you
have to use the OnTime method and program your data access yourself

--
Regards
Frank Kabel
Frankfurt, Germany


Kelvin wrote:
Hi

I am using Excel 2002 to get a web query, it work fine but the
AUTOMATIC REFERESH Interval is min 1 minute.

I want set the Interval to 20 seconds, can any one help me about how
to?

Using VBA ? can give some example code ?

Thank you

Kelvin


  #3  
Old June 15th, 2004, 11:37 AM
Kelvin
external usenet poster
 
Posts: n/a
Default Web Query Refersh Interval

Thanks

I using onTime method, but still have problem with refresh
Here is the code of refresh

==========

Sub Refresh()

Selection.QueryTable.Refresh BackgroundQuery:=False

End Sub

===========

It can refresh every 20 second, but I must point the sheet, it I want to see other sheet it will ERROR 400

Help me please

Thank you

Kelvin





"Frank Kabel" wrote:

Hi
AFAIK this is the best you can get. If you need shorter intervals you
have to use the OnTime method and program your data access yourself

--
Regards
Frank Kabel
Frankfurt, Germany


Kelvin wrote:
Hi

I am using Excel 2002 to get a web query, it work fine but the
AUTOMATIC REFERESH Interval is min 1 minute.

I want set the Interval to 20 seconds, can any one help me about how
to?

Using VBA ? can give some example code ?

Thank you

Kelvin



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:30 PM.


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