A
Alejandro
I have a code that is creating and filling a new document with a template as
base. Herefore the user is requested to enter some specific data in an
userform, activated through a custom toolbarbutton. After code running I
would like to set the focus to this new document but somehow it doesn't
work.
I tried:
Documents(1).Activate
Windows(ActiveDocument.Name).Activate
Application.ScreenRefresh
and other combinations. I see that while code is running the new window is
activated but after the code is ended the focus is returned to the document
in which the code was started.
Any suggestions would be most welcome.
Alexander
base. Herefore the user is requested to enter some specific data in an
userform, activated through a custom toolbarbutton. After code running I
would like to set the focus to this new document but somehow it doesn't
work.
I tried:
Documents(1).Activate
Windows(ActiveDocument.Name).Activate
Application.ScreenRefresh
and other combinations. I see that while code is running the new window is
activated but after the code is ended the focus is returned to the document
in which the code was started.
Any suggestions would be most welcome.
Alexander