Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ActiveWorkbook.RefreshAll

I would like to gve the RefreshAll 5 seconds to complete before performing
the next actions. Is this possible?

Thanks

ActiveWorkbook.RefreshAll

Sheets("Data").Select
Sheets("Data").Copy
Cells.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default ActiveWorkbook.RefreshAll

why not set up your queries so they don't query in the background -- then you
shouldn't need to worry about it.

--
Regards,
Tom Ogilvy


"Matt Cromer" wrote:

I would like to gve the RefreshAll 5 seconds to complete before performing
the next actions. Is this possible?

Thanks

ActiveWorkbook.RefreshAll

Sheets("Data").Select
Sheets("Data").Copy
Cells.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default ActiveWorkbook.RefreshAll

Tom -

That sound great, how do I set up the query (there is actually only one) to
not run in the background?

"Tom Ogilvy" wrote:

why not set up your queries so they don't query in the background -- then you
shouldn't need to worry about it.

--
Regards,
Tom Ogilvy


"Matt Cromer" wrote:

I would like to gve the RefreshAll 5 seconds to complete before performing
the next actions. Is this possible?

Thanks

ActiveWorkbook.RefreshAll

Sheets("Data").Select
Sheets("Data").Copy
Cells.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default ActiveWorkbook.RefreshAll

Edit the query and there should be an option for that in the dialog.

An alternative is to just have your refresh command insure a foreground
query.

Activesheet.QueryTables(1).Refresh Backgroundquery:=False

RefreshAll doesn't have that argument.

--
Regards,
Tom Ogilvy


"Matt Cromer" wrote:

Tom -

That sound great, how do I set up the query (there is actually only one) to
not run in the background?

"Tom Ogilvy" wrote:

why not set up your queries so they don't query in the background -- then you
shouldn't need to worry about it.

--
Regards,
Tom Ogilvy


"Matt Cromer" wrote:

I would like to gve the RefreshAll 5 seconds to complete before performing
the next actions. Is this possible?

Thanks

ActiveWorkbook.RefreshAll

Sheets("Data").Select
Sheets("Data").Copy
Cells.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False

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
ActiveWorkbook.RefreshAll teepee[_3_] Excel Discussion (Misc queries) 0 November 11th 08 02:11 PM
ActiveWorkbook.RefreshAll nc Excel Discussion (Misc queries) 0 March 21st 06 10:50 AM
ActiveWorkbook.RefreshAll toosie Excel Programming 1 February 16th 05 09:55 AM
RefreshAll Data with VBA JasonSelf[_4_] Excel Programming 2 January 25th 04 09:52 PM
ActiveWorkbook.RefreshAll Mark[_22_] Excel Programming 0 October 15th 03 02:22 AM


All times are GMT +1. The time now is 02:20 AM.

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

About Us

"It's about Microsoft Excel"