PDA

View Full Version : How check whether the paragraph is empty or not?



oleval
01-12-2008, 01:55 AM
Hi All!

I need your help in the following. My code is to define whether cursor is pointing to an empty paragraph or a one that contains some words, phrases and sentences.

I would appreciate your help!

Alexander

TonyJollans
01-12-2008, 03:44 AM
selection.paragraphs(1).range.characters.count = 1 ' means empty

oleval
01-12-2008, 05:54 AM
Tony, thank you very much! This is very helpfull indeed!