Deleting lines which are biggining with a certain word.

Q

QCC

If each line is its own paragraph (as I suspect it is)
then something like this will work:

For each para in activedocument.paragraphs
If left(para.range.text, [LENGTH OF STRING])=
[STRING] then para.range.delete
Next para

-----Original Message-----
can somebody help me to clean my document from lines
which have certain code in de beginning of each line. i
can not fine any function for it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top