pro_vb thread: home stretch.... and i hit a speed bump
thanks!!
daniel
Daniel O'Dorisio
dodorisio@h...
xxx-xxx-xxxx
-----Original Message-----
From: Steven V. Gates [mailto:sgates@b...]
Sent: Tuesday, May 29, 2001 10:29 AM
To: professional vb
Subject: [pro_vb] Re: home stretch.... and i hit a speed bump
subject = myrange.Text (not myrange.Select)
On Fri, 25 May 2001 20:44:22, "Daniel O'Dorisio" <dodorisio@h...>
wrote:
>
>hey.. this is related to the thread "need advice from an expert" or
>something like that.. but anyway
>
>i have the app written and i need to do the following.. i need to select
>the verry top line of text. it will be the name of the paitent.. so it
>will read like:
>
>Bloggs, Joe
>ACCT#: 456789
>SSN: 123-45-6789
>
>so what i need to do is get the first line(name) and set it to a variable.
>so that i can put it as the subject of the outlook message.
>
>any ideas? i tried to do
>
>Set myrange = ActiveDocument.Range( _
> start:=ActiveDocument.Paragraphs(1).Range.start, _
> End:=ActiveDocument.Paragraphs(1).Range.End)
>subject = myrange.Select
>myItem.subject = subject
>
>but it didnt work.. help please:-)
>
>daniel
>
>
>
>
>