Hi everybody
can somebody tell me the difference between
Selection.HomeKey UNIT:=wdStory, Extend:=wdExtend and Selection.HomeKe
UNIT:=wdStory, Extend:=wdMove ?

Thanx

Lyn

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

Re: Difference between wdExtend and wdMove by Martin

Martin
Fri Dec 12 09:12:06 CST 2003

Hi Lyne

> can somebody tell me the difference between
> Selection.HomeKey UNIT:=wdStory, Extend:=wdExtend and Selection.HomeKey
> UNIT:=wdStory, Extend:=wdMove ?

While wdMove moves the selection (no inverted text visible),
wdExtend extends the selection to the beginning of the document.
If your cursor is e.g. in the 7th paragraph and you use wdMove,
your cursor is simply moved to the beginning of the document. If,
on the other hand, you use wdExtend, then the first 6 paragraphs
will be selected...


Cheers,

Martin