N
neetz
Hi -- I want to be able to mark various unrelated words throughout a
text in a hidden way so they can be quickly found. This is so that
written plans can be updated annually quickly.
I figured out how to define a new style and apply it to any word (my
skills are basic as you can see). I also found someone's macro online
and figured out how to run a macro. However, I can search for a style
successfully only if I apply it to a whole paragraph, which does not
suit my purpose. I need to be able to search for single words embedded
within paragraphs.
Here is the macro (below). Can it be modified to search for characters
with a given style? Or is there some other way? This would be an
incredible timesaver!!
Thank you for any advice. I'll keep reading to learn more, too.
Sub FindHeadingStyle()
Selection.Find.Style = ActiveDocument.Styles("Heading 8")
Selection.Find.Execute
End Sub
text in a hidden way so they can be quickly found. This is so that
written plans can be updated annually quickly.
I figured out how to define a new style and apply it to any word (my
skills are basic as you can see). I also found someone's macro online
and figured out how to run a macro. However, I can search for a style
successfully only if I apply it to a whole paragraph, which does not
suit my purpose. I need to be able to search for single words embedded
within paragraphs.
Here is the macro (below). Can it be modified to search for characters
with a given style? Or is there some other way? This would be an
incredible timesaver!!
Thank you for any advice. I'll keep reading to learn more, too.
Sub FindHeadingStyle()
Selection.Find.Style = ActiveDocument.Styles("Heading 8")
Selection.Find.Execute
End Sub