AppActivate AdobeTitle, False

Do
If FindWindow(vbNullString, "Adobe Premiere") <> 0 Then
Exit Do
DoEvents
Loop
i want it to loop di doop until that window appears. or should i just put doEvents straight after appactivate, would that do the job.

i need to do this becuase i will be sending keystrokes to the program once it is loaded.