Consulting

Results 1 to 5 of 5

Thread: Time lapse

  1. #1

    Time lapse

    I would like to copy CELL B3 wait 10 seconds and copy it onto CELL B4.

    Thanks,
    Nick

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I cannot see the rationale behind this. Why not just wait 10 seconds then copy and paste?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Fair enough.
    There is a formula that downloads prices in Excel from a financial data source. This takes a few seconds. My problem is that if I run a macro that refreshes formula for price download and then goes on to do some calculations the calculations are incorrect because we have not given enough time for all prices to be downloaded. My idea was to have a macro that downloads prices and then only after 10 seconds have the next part of the macro kicking in so we are sure that all data downloaded and the calculations will be correct. So basically I need a way to have some time lapse between two parts of macro. Hope now it is clear. One solution would be to break macro in two parts and run them separately but was wondering whether one could have one macro giving same result. Thanks! Nick

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Okay, take a look at Application.Wait in VBA help.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Tutor lynnnow's Avatar
    Joined
    Jan 2005
    Location
    Mumbai, Maharashtra, India
    Posts
    299
    Location
    If you are setting a macro to download data, why not use the readystate option and then trigger the rest of the data after that?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •