good stuff Sergey - thanks so much.
k
>Try
>
>oWSH = CreateObject( "WScript.Shell" )
>oWSH.AppActivate( oMailItem.Application.ActiveInspector.Caption )
>
>
>>i am running outlook automation - when the email has been prepared and ready to send, i would like the email to appear as the front window - but VFP pops up in front of the email - as a temporary solution i minimize the VFP screen thus:
>>
>>_SCREEN.WINDOWSTATE=1
>>
>>
>>in my outlook automation i am using the following code.
>>
>>IF tlOpenEmail
>> .display()
>> olNormalWindow = 0
>>
>> loInspector = .GetInspector()
>> loInspector.WindowState = olNormalWindow
>>endif
>>
>>
>>what is the line of code i would add to bring the email to the front window?
>>
>>thanks for any suggestions.
>>k