"activate" Active Document with code

Z

zSplash

After I run my code, when I try to use the toolbar, nothing happens. It
acts as if it's frozen. If I click on the window in the toolbar (which
shuts the active document) and then re-click on the window in the task bar,
my toolbar now is functional again.

How can I programmatically get around this (having to mouse-click off and
then on the active window) after running my code? (Neither
Activedocument.Activate nor Activedocument.Select does it.)

TIA
 
J

Jean-Guy Marcil

zSplash was telling us:
zSplash nous racontait que :
After I run my code, when I try to use the toolbar, nothing happens.
It acts as if it's frozen. If I click on the window in the toolbar
(which shuts the active document) and then re-click on the window in
the task bar, my toolbar now is functional again.

How can I programmatically get around this (having to mouse-click off
and then on the active window) after running my code? (Neither
Activedocument.Activate nor Activedocument.Select does it.)

It might be useful to know what your code does.... and the Word version...


Meanwhile, just a long shot... Have you tried:
ActiveWindow.Activate
or
ActiveWindow.ActivePane.Activate
?
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
[email protected]
Word MVP site: http://www.word.mvps.org
 
Top