Word Fields - Only want to prompt once

G

Guest

I am trying to create a User Form.
I entered in Visual Basic:
With Active Document
..Bookmarks("BookmarkName").Range_
..InsertBefore UserformTexBoxName
End With

I have a template that I have already created the Bookdmarks. The form is
fine. When I hit the Command Button it stops and Error Invalid use of
property.

I copied this from the internet. Just trying to creat a User form to fill
in information on a template for proposals.

Thanks in advance for your assistance.

Katherine
 
J

Jezebel

What do you expect this piece of code to do for you? It's trying to insert
something in front of the bookmark range in the document. This is an odd
thing to do anyway in a form; and if you simply copied it, it has a typo as
well. "UserformTexBoxName" doesn't look right (it should be
UserForm.TextBoxName -- note the period -- where 'Userform' is the name
you've assigned to the form, and 'TextBoxName' is the name you've assigned
to the textbox you want to refer to). Do you really mean 'UserForm'? -- a
Userform is a VB object, not a document set up with form fields.
 

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