To Range or not to Range?

P

Paul Lautman

Can anyone tell me the difference between:

Selection.Paragraphs(1).Range.Style
and
Selection.Paragraphs(1).Style
 
G

Gary Barnes

Hi,

As I understand it there is no difference given the syntax you have given.
Both "selection.paragraphs(1)" and "selection.paragraphs(1).range" will
return a range object that covers the first paragraph within the current
selection. I believe you would only bother to use the second option if you
wanted to do something like "selection.paragraphs(1).range.words(2)" i.e.
give me a range covering the second word of the first paragraph of the
current selection.

Gary
 

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