Simulation , image control does not display images in correct order

Hey guys/ girls:

I am making a simulation in excel, but i am running into a problem

here is the code


Code:
boxes1.Picture = box3
Application.Wait (Now + TimeValue("0:00:03"))
Application.ScreenUpdating = True
boxes1.Picture = box1
Application.Wait (Now + TimeValue("0:00:03"))



in the code boxes1 is the image control box3, and box1 are IPicDisp

You would think that as that code runs, i would first see box3 picture wait a couple of seconds and then see box1. But vba is not doing this. Instead it never displays box3 and shows box1 after 6 seconds. That is not what i want!!!

Has anyone run into this problem before?

Thanks for the help
Jon

Comments

  • You can try adding DoEvents before your first wait statement.

    ciao,
    markyc
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion