MS Word Macro to Remove Specific Sentences

By dennisheljacobsen ·
Tags: Software
Dear all,

I came across this website and found a very helpful macro (here: for a particular research I am currently working on. The macro allows me to search for specific sentences in my word document, and highlight those sentences. However, I would like to be able to delete the focal sentences instead of simply highlighting them. The macro I use is to be found in the link above. Would any of you be able to help me write a bit more on the code so as to make it delete the sentences I put in to the macro (e.g.: WordCollection(0) = "here goes my first sentence - that is, one I would like to delete from the document")?

All the best,
/Dennis Jacobsen.
Thread display: Collapse - | Expand +

All Answers

Share your knowledge

Related Discussions

Related Forums