ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Bring up a UserForm to the front (https://www.excelbanter.com/excel-programming/277765-bring-up-userform-front.html)

Jens 'Kluesi' Kluesener

Bring up a UserForm to the front
 
Hi

I create a word document from Excel. If I do this whil word is running my
form is on the top of the screen. If word is not running the form is not at
the top of the screen when word starts. How can I now bring up the form to
the front?

Many Thanks

Jens

Henry[_4_]

Bring up a UserForm to the front
 
Jens,

Some code would have been helpful.
I've looked again at the code in your website and suggest you try putting
the
..Visible = True before the .ScreenUpdating = False line

The way you've got it, you turn off screen updating and then try to make
word visible.
As the screen updating is turned off, this has no (visible) effect until you
turn screen updating on again.

With appWord.Application
.Visible = True
If CHECK Then .ScreenUpdating = True Else .ScreenUpdating = False

HTH
Henry


"Jens 'Kluesi' Kluesener" wrote in message
...
Hi

I create a word document from Excel. If I do this whil word is running my
form is on the top of the screen. If word is not running the form is not

at
the top of the screen when word starts. How can I now bring up the form to
the front?

Many Thanks

Jens





All times are GMT +1. The time now is 06:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com