Group: microsoft.public.word.vba.general
From: =?Utf-8?B?YXVzaGtub3Rlcw==?=
Date: Wednesday, March 19, 2008 7:20 PM
Subject: RE: select text after paste

Following will work:

Dim oRange As Range
Set oRange = Selection.Range
oRange.Start = Selection.Start
Selection.InsertFile sFile, Range:="", ConfirmConversions:=False,
Link:=False, Attachment:=False
oRange.End = Selection.Start
oRange.Select


"aushknotes" wrote:

> Try
> 1) insert a bookmark before you insert text,
> 2) Insert your text
> 3) Selection.GoTo What:=wdGoToBookmark, Name:="bookmarkYouJustCreated"
>
>
> "mithu" wrote:
>
> > hello everyone,
> >
> > Question. all this is being done in VBA.
> >
> > I am copying and pasting some verbiage from doc1 to doc2. this is
> > working fine. What i am trying to do is have the text that was just
> > pasted into doc2 be selected or be highlighted after the paste. is
> > there anyway i can select the text i just pasted?
> >
> > Many thanks in advance
> >

Safety Articles | Usenet Groups | Usenet News | Bluegrass