Is .fields.unlink supposed to remove DocVariables from a Word document. I put it into my VBA code, but the fields remain. Do I have to select the fields in the document first? If so,how is that done? I've been trying, but I can't get it.
I found this bit of code to try selecting Word text, but I keep getting a compile error: "Variable Not Defined" on "ActiveDocument" after "Start:=". I don't know how to define it. Using Office 2003.
Sub SelectRange()
Dim rngParagraphs As Range
Set rngParagraphs = ActiveDocument.Range( _
Start:=ActiveDocument.Paragraphs(1).Range.Start, _
End:=ActiveDocument.Paragraphs(50).Range.End)
rngParagraphs.Select
End Sub
Bookmarks