Word 2000 - Hiding the active document, user sees only a userform

E

elle0612

Hi

I have followed Doug Robins' vey well written tutorial on creating a
userform and have got a great template now that works well with a userform.

One thing though, is there some code I could use there to actually hide the
active document from the user, so that when the template is used, all the
user sees is the userform (my userform contains two text boxes and a button
which also finally prints the document after adding the text from the text
boxes).

I think that would be a really great addition to my template.

Thanks
 
E

elle0612

Thats great, thanks very much. Needless to say I'm just starting to tinker
with Word and VBA.

Thanks again.
 
G

Graham Mayor

I'm not sure I would recommend that, however if you do use it, ensure that
you set the view to true again when you have finished the processing, as it
hides the complete Word application! You would insert the line immediately
before the command that displays your userform e.g.

Application.Visible = False
frmFormName.Show
Application.Visible = True


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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