A
Angie M.
Hi,
I have the following code:
If boxState = True Then
Dim rngDoc3 As Range
Set rngDoc3 = ActiveDocument.Range.Bookmarks("bkState").Range
ActiveDocument.AttachedTemplate.AutoTextEntries("3State").Insert _
Where:=rngDoc3, RichText:=True
Else
oDoc.Bookmarks("bkState").Range.Paragraphs(1).Range.Delete
End If
that doesn't work. I want it to recognize if the boxState is checked or
not, if so, insert my autotext called 3State at the bookmark bkState,
otherwise I want it to delete the paragraph where the bookmark sits. What am
I doing wrong?
Thanks for the help
I have the following code:
If boxState = True Then
Dim rngDoc3 As Range
Set rngDoc3 = ActiveDocument.Range.Bookmarks("bkState").Range
ActiveDocument.AttachedTemplate.AutoTextEntries("3State").Insert _
Where:=rngDoc3, RichText:=True
Else
oDoc.Bookmarks("bkState").Range.Paragraphs(1).Range.Delete
End If
that doesn't work. I want it to recognize if the boxState is checked or
not, if so, insert my autotext called 3State at the bookmark bkState,
otherwise I want it to delete the paragraph where the bookmark sits. What am
I doing wrong?
Thanks for the help