Hiding a dicument while dispalying a user form.

M

Mark King

Hi, all

Hope somebody could help with this situation.

I have a 'Userform' on a docoument so that the user types
information into the textboxes on the form, and when the
user clicks on a button the information is transfered
from the form and into certain places within the letter.

What I would like to do is not have the document
displayed (or somehow hide the document) while the
Userform is displayed. I dont want the user to be able
to see the document, only the userform.

Anybodys help on this matter would be grateley
appreciated.

Many thanks in advance

Mark
 
H

Helmut Weber

Hi Mark,
a simple approach could be:
ActiveWindow.WindowState = wdWindowStateMinimize
' userform
ActiveWindow.WindowState = wdWindowStateMaximize
Beware of inventive users.
Greetings from Bavaria, Germany
Helmut Weber
"red.sys" & chr$(64) & "t-online.de"
Word 97, Win 98
 

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