Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
SharonC
 
Posts: n/a
Default Macro trouble - repeating data fill-in

I've read through all the posts I could find regarding entering repeating
data in a form. I went to
http://word.mvps.org/FAQs/Userforms/CreateAUserForm.htm as instructed, but I
am getting an error.

On that page, step 10, where you are defining bookmarks with this code:

Enter the following code between the Private Sub CommandButton1_Click() and
theEnd Sub

With ActiveDocument
.Bookmarks("Text1").Range _
.InsertBefore TextBox1
.Bookmarks("Text2").Range _
.InsertBefore TextBox2
End With

UserForm1.Hide

I get an error message with .Range_ highlighted. The message says "method
or data member not found". What is ".range_" referring to here? Am I
supposed to replace something with my own text (I replaced "text1" and
Textbox1 with my own text and textbox labels as instructed. What am I
missing? I'm sure it is staring me in the face!

Sharon

 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Template with Repeating fields and macro buttons Carol Microsoft Word Help 1 October 17th 05 02:09 AM
Repeating Data or poulating fileds trouble HELP! Tpeila Microsoft Word Help 2 September 28th 05 03:41 PM
Repeating Data Macro problem Tpeila Microsoft Word Help 0 September 19th 05 10:03 PM
How do I create a macro to data sort in a table within a protecte. Keenly52 Tables 5 March 29th 05 08:38 AM
Specific Email Merge w/ Specific Attachements Mark B Mailmerge 9 February 21st 05 05:10 AM


All times are GMT +1. The time now is 07:27 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"