Finding hard returns in a document

N

Nick Transier

I am having trouble finding a boolean statement that will identify a
paragraph that has nothing in it i.e. if I have

Heading 1
Text Under heading 1
(return)
(return)
Heading 2
etc.

I want to know when I have the paragraph that has nothing but a return in
it. I have tried checking whether
para.range.text = ""
para.range.text = " "
para.range.text = "^l"
para.range.text = "^m"
para.range.text = "^p"

to no avail. Any ideas?

Also, where can I find a list of the switches and what they mean (like "^m")

Thanks- Nick
 
G

Greg

Nick,

Not sure of your ultimate objective. but the information
here might help:

http://gregmaxey.mvps.org/Count_Lines_of_Text.htm

As for the special codes, these are listed in Word Help.
Search for Find and replace text or formating. In the
What do you want to do list, select Find and replace
paragraph marks, page breaks, and other items. In the
next window that opens click on "type a code for the item."
 
N

Nick Transier

Thanks for your help Greg.

I was able to use something from that site, I now check if the para that I
have selected has a character count of > 1 before moving it to the next
document. This gets rid of all the empty lines.

Nick
 

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