How do i get all the styles & formats applied to a word document. I am using the codes below but I can't get the styles on the header & footer. What should I do to include the styles on the header & footer?
With oDoc.Range(Star t:=oDoc.Content .Start, End:=oDoc.Conte nt.End)
For Each oPrg In oDoc.Paragraphs
strStyle = oPrg.Style
strStylesFormat = strStylesFormat & strStyle & ", "
Next
End with
With oDoc.Range(Star t:=oDoc.Content .Start, End:=oDoc.Conte nt.End)
For Each oPrg In oDoc.Paragraphs
strStyle = oPrg.Style
strStylesFormat = strStylesFormat & strStyle & ", "
Next
End with
Comment