E
EB
I'm using the following code to remove some text form fields plus a logo i
have at the top of my template. ub RemoveHeader()
ActiveDocument.FormFields("Text12").Delete
ActiveDocument.FormFields("Text13").Delete
ActiveDocument.FormFields("Text14").Delete
ActiveDocument.FormFields("Text15").Delete
ActiveDocument.FormFields("Text16").Delete
ActiveDocument.FormFields("Text17").Delete
ActiveDocument.FormFields("Text18").Delete
ActiveDocument.Shapes(1).Delete
I would like to modify the code so that I can delete two words located at
the top of the document. The word "Telephone" and the word "Facsimile." I
have tried using the following, however, it does not work:
Selection.Find.Text = ("Telephone")
Selection.Delete
Can someone tell me what I'm doing wrong?
thanks,
have at the top of my template. ub RemoveHeader()
ActiveDocument.FormFields("Text12").Delete
ActiveDocument.FormFields("Text13").Delete
ActiveDocument.FormFields("Text14").Delete
ActiveDocument.FormFields("Text15").Delete
ActiveDocument.FormFields("Text16").Delete
ActiveDocument.FormFields("Text17").Delete
ActiveDocument.FormFields("Text18").Delete
ActiveDocument.Shapes(1).Delete
I would like to modify the code so that I can delete two words located at
the top of the document. The word "Telephone" and the word "Facsimile." I
have tried using the following, however, it does not work:
Selection.Find.Text = ("Telephone")
Selection.Delete
Can someone tell me what I'm doing wrong?
thanks,