Dave was telling us:
Dave nous racontait que :
> I'm populating a table using predefinded autotext chosen by selecting
> checkboxes on several forms, the table has a blank row with a single
[quoted text clipped - 13 lines]
>
> I hope this makes sense. Any help would be greatIy appreciated.
Here is a little something I cooked up that might be of interest!
Basically, I avoid the selection object like the pest!
'_______________________________________
Sub Main()
Dim InsertRange As Range
Set InsertRange = ActiveDocument.Bookmarks("ActionItems").Range
Set InsertRange = InsertMyAutoText(InsertRange, _
"Electrical SafetyGFCIs")
Set InsertRange = InsertMyAutoText(InsertRange, _
"Next one")
Set InsertRange = InsertMyAutoText(InsertRange, _
"Another one")
Set InsertRange = InsertMyAutoText(InsertRange, _
"Last one")
End Sub
'_______________________________________
'_______________________________________
Function InsertMyAutoText(TargetRange As Range, _
AutoTextName As String) As Range
With TargetRange
.Text = AutoTextName
.InsertAutoText
.Collapse wdCollapseEnd
End With
Set InsertMyAutoText = TargetRange
End Function
'_______________________________________

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Dave - 15 Apr 2005 20:03 GMT
Great. Thanks for the tip. I'll definitely give it a shot.
> Dave was telling us:
> Dave nous racontait que :
[quoted text clipped - 53 lines]
> End Function
> '_______________________________________