#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Pause?

Is there a command to pause a subroutine? Specifically, I try to read data
from a web-page that I have just Refreshed:

Selection.QueryTable.Refresh BackgroundQuery:=False

When the sub bombs at this command, I manually wait a minute or two and try
again and most of the time that works. I want to write an "on error" that
will automatically wait a minute and then try again.

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Pause?

Pete,

Take a look at the Wait method in VBA Help.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Pete Fedrowitz" wrote in message
news:cp7Xb.5543$m43.628@lakeread01...
Is there a command to pause a subroutine? Specifically, I try to read

data
from a web-page that I have just Refreshed:

Selection.QueryTable.Refresh BackgroundQuery:=False

When the sub bombs at this command, I manually wait a minute or two and

try
again and most of the time that works. I want to write an "on error" that
will automatically wait a minute and then try again.

Thanks




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Pause?

Thanks, Bob. It's just what I've been looking for.

Pete



"Bob Phillips" wrote in message
...
Pete,

Take a look at the Wait method in VBA Help.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Pete Fedrowitz" wrote in message
news:cp7Xb.5543$m43.628@lakeread01...
Is there a command to pause a subroutine? Specifically, I try to read

data
from a web-page that I have just Refreshed:

Selection.QueryTable.Refresh BackgroundQuery:=False

When the sub bombs at this command, I manually wait a minute or two and

try
again and most of the time that works. I want to write an "on error"

that
will automatically wait a minute and then try again.

Thanks






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
pause a macro tsmith Excel Discussion (Misc queries) 9 January 22nd 09 12:47 AM
How do I pause a macro? Dave H Excel Discussion (Misc queries) 5 May 3rd 08 04:53 PM
Macros Pause GWB Direct Excel Discussion (Misc queries) 7 May 10th 05 09:28 PM
Pause during a Macro Marie[_3_] Excel Programming 6 January 18th 04 12:18 PM
Pause a VBA Module Rick Campbell Excel Programming 2 August 12th 03 02:08 AM


All times are GMT +1. The time now is 08:33 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"