D
DaveK.
Hello:
I have followed the instructions several times on the tutorial to create a
user form.
I keep getting the same compile error after hiting the execute button.
"Method or data member not found"
I copied the code as shown in the tutorial; and the userform pops up nicely
and I can fill in text in both boxes, but I get the compile error above. I
cannot figure if I have a problem in the template bookmark or the code.
Private Sub CommandButton1_Click()
With ActiveDocument
.Bookmarks ("Text1").Range_
.InsertBefore TextBox1
.Bookmarks ("Text2").Range_
.InsertBefore TextBox2
End With
UserForm1.Hide
End Sub
One thing I noted on the tutorial it uses "TextBox1" and "Textbox2" to
describe making the bookmarks on the template with the []. The quotations
marks are not allowed when entering bookmark names, so my bookmarks are
TextBox1 and Textbox2".
Any clues on how to trouble shoot this error will be appreciated.
Thanks, Dave K.
I have followed the instructions several times on the tutorial to create a
user form.
I keep getting the same compile error after hiting the execute button.
"Method or data member not found"
I copied the code as shown in the tutorial; and the userform pops up nicely
and I can fill in text in both boxes, but I get the compile error above. I
cannot figure if I have a problem in the template bookmark or the code.
Private Sub CommandButton1_Click()
With ActiveDocument
.Bookmarks ("Text1").Range_
.InsertBefore TextBox1
.Bookmarks ("Text2").Range_
.InsertBefore TextBox2
End With
UserForm1.Hide
End Sub
One thing I noted on the tutorial it uses "TextBox1" and "Textbox2" to
describe making the bookmarks on the template with the []. The quotations
marks are not allowed when entering bookmark names, so my bookmarks are
TextBox1 and Textbox2".
Any clues on how to trouble shoot this error will be appreciated.
Thanks, Dave K.