Vince,
That is what I would like to do. Surround different styles with different
tags and it will be easier to parse. I thought I could use the find and
replace function for each style, but cannot figure out the regular
expression. Could you give me any further info please?
Thanks,
peace4theapes
> Sounds like the document is styled, so why not loop through the styles and
> tag them as well?
[quoted text clipped - 11 lines]
> > Thanks,
> > peace4theapes
Vince - 18 Feb 2005 01:37 GMT
Why not just do this?
Dim ST As Style
For Each ST In ActiveDocument.Styles
With ActiveDocument.Content.Find
.ClearFormatting
.Style = ST
With .Replacement
.text = "<" & ST & ">" & "^&" & "</" & ST & ">"
End With
.Execute Replace:=wdReplaceAll
End With
Next
You can do any clean up after this....
> Vince,
> That is what I would like to do. Surround different styles with different
[quoted text clipped - 20 lines]
> > > Thanks,
> > > peace4theapes