Hello all,
I am trying to create a macro to clean up some documents that have way too much info. I need to write a function that will loop through my entire doc looking for lines with certain text
Example: I may have a line that looks like this
a. hx,Oj Hebrew Pp+xxnbfhkd (particle preposition)
If I do a find with wildcards for this text (Hebrew P* * ^13) I will find everything after word Hebrew, But I want to select (then delete) the whole line.
Also I would like to put the search parameters in an array because I will end up having more than ten different searches I need to do.
Maybe something like:
[VBA]
Do
If InStr(1, Selection.Text, "Hebrew P*") Then
Selection.EndKey Unit:=wdLine, Extend:=wdExtend
Selection.Delete
Loop
[/VBA]
Any Help?
Thanks