Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Delay copy & paste of data until web query refreshes?

Paste the below procedure and call Wait (2) in your code to wait for 2
seconds...


Sub Wait(sngDelayInSecs As Single)
EndDelay = Timer + sngDelayInSecs
Do While Timer < EndDelay
DoEvents
Loop
End Sub

--
If this post helps click Yes
---------------
Jacob Skaria


"CM4@FL" wrote:

I need to delay copying my data in cells E10:N:10 while my web query
completely refreshes, after the refresh is complete then can I copy the data.
Can anyone help me with the delay function?

Range("B4:C4").Select
Selection.Copy
Range("E4").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveWorkbook.RefreshAll
********* NEED A DELAY FUNCTION HERE *********
Range("E10:N10").Select
Selection.Copy
Range("E47").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False

Thanks in advance

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
Delay copy & paste of data until web query refreshes? Jacob Skaria Excel Programming 0 April 16th 09 06:00 PM
copy chart delay (musa.biralo query) Matthew Dodds Excel Programming 0 April 10th 07 07:50 AM
Copy/Paste in Excel Delay Ray2943 Links and Linking in Excel 1 December 7th 06 12:54 AM
"New Web Query" always refreshes data from website (3 times) Matt Suppa Excel Worksheet Functions 1 February 1st 06 05:50 PM
Simple question: How to get web query to NOT overwrite data when it refreshes? A Smith Excel Programming 2 September 6th 04 04:29 AM


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