Displaying a VB form in Word Document

B

Beverly

I am very new to using VB in Word. I have created a userform for data entry in Word Visual Basic, but I don't know how to get it to display in a document. Any advice would be greatly appreciated

-Beverly
 
H

Howard Kaikow

To display a Userform, use the Show method,

Also take a look at the list of Word VBA books at my URL below.

--
http://www.standards.com/; See Howard Kaikow's web site.
Beverly said:
I am very new to using VB in Word. I have created a userform for data
entry in Word Visual Basic, but I don't know how to get it to display in a
document. Any advice would be greatly appreciated.
 
J

Jezebel

You need a macro with code to call the form. Eg

With New frmMyForm (Whatever your UserForm is called)
... set form properties here if any
.Show
End With



Beverly said:
I am very new to using VB in Word. I have created a userform for data
entry in Word Visual Basic, but I don't know how to get it to display in a
document. Any advice would be greatly appreciated.
 
H

Helmut Weber

Hi Beverly,
.... and as programming Word is new to You, is is advisable, to
distinguish clearly between VB (Visual Basic) and VBA (Visual Basic
for Applications). At first, I thought, You wanted to show a VB! form,
which would be rather difficult, as forms are internally quite
different in VB and VBA, AFAIK.
Greetings from Bavaria, Germany
Helmut Weber
"red.sys" & chr(64) & "t-online.de"
Word XP, 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