Hi Yulia,
Provided your activated object will be the one processing keyboard commands,
you can use SendKeys to deactivate the object. For example:
SendKeys "{esc}", Wait:= True
However, if you have a UserForm open while you're activating objects, the
UserForm will trap the keyboard events and this approach won't work.
Cheers
> Hello!
>
[quoted text clipped - 29 lines]
>
> Thank you very much in advance.
Yulia Gillerson - 23 May 2006 10:58 GMT
macropod,
> Provided your activated object will be the one processing keyboard commands,
> you can use SendKeys to deactivate the object. For example:
> SendKeys "{esc}", Wait:= True
Thank you for your answer. I use this method, but Word often hangs until
I'll press Ctrl-Alt-Del and open task manager :(.
I hope, that exists more stable and simple method.