"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
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
J

Jean-Guy Marcil

zSplash was telling us:
zSplash nous racontait que :
Oh, Jean-Guy, you're too good for words. Worked great, and I thank
you.

Don't mention it.... Now all I have to do is convince my wife of the same...
;-)

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top