M
m rafala
In a Word macrop, I am used to doing Selection.Find, and then doing various
things to the found text. I keep track of where I am with Selection.Start
and Selection.end, and also such things as
ActiveDocument.range(Selection.Start + 5, Selection.End - 1), etc.
I now need to do lots of work with very long Footnotes. I can find things by
using the Footnotes Story, but Selection.Start and End seem to refer to the
main Story, not my selection in the Footnote story.
Does this make sense? How can I do the following, but in the footnotes
section:
Selection.find.execute .... "my text"
ActiveDocument.Range(selection.start +2, selection.end -2).select
selection.font.italic = true
things to the found text. I keep track of where I am with Selection.Start
and Selection.end, and also such things as
ActiveDocument.range(Selection.Start + 5, Selection.End - 1), etc.
I now need to do lots of work with very long Footnotes. I can find things by
using the Footnotes Story, but Selection.Start and End seem to refer to the
main Story, not my selection in the Footnote story.
Does this make sense? How can I do the following, but in the footnotes
section:
Selection.find.execute .... "my text"
ActiveDocument.Range(selection.start +2, selection.end -2).select
selection.font.italic = true