Doctype is the declaration above the html start tag.
It is also called Document Type Definition and DTD.
The following code will delete it from the ActiveDocument.
ActiveDocument.DocumentHTML = _ Mid(ActiveDocument.DocumentHTML, _ InStr(ActiveDocument.DocumentHTML, _ "<html"), Len(ActiveDocument.DocumentHTML))
Instr method finds the position of "<html"
mid method saves only the text after the "<html" start tag.