From: James on
I have a macro that pastes in some text from a textfile unformatted. I want
to bold the first line from the text file. there is a cariage return between
the first line and the body of the text in the text file if it helps. Also,
after the paste the text is already selected. thanks in advance for any help!


From: Jay Freedman on
If by "carriage return" you mean specifically a paragraph mark, then
add the following statement to the macro after the paste command:

Selection.Paragraphs(1).Range.Bold = True

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

On Wed, 21 Apr 2010 12:34:01 -0700, James
<James(a)discussions.microsoft.com> wrote:

>I have a macro that pastes in some text from a textfile unformatted. I want
>to bold the first line from the text file. there is a cariage return between
>the first line and the body of the text in the text file if it helps. Also,
>after the paste the text is already selected. thanks in advance for any help!
>
From: James on
That worked great, thank you!

"Jay Freedman" wrote:

> If by "carriage return" you mean specifically a paragraph mark, then
> add the following statement to the macro after the paste command:
>
> Selection.Paragraphs(1).Range.Bold = True
>
> --
> Regards,
> Jay Freedman
> Microsoft Word MVP FAQ: http://word.mvps.org
> Email cannot be acknowledged; please post all follow-ups to the
> newsgroup so all may benefit.
>
> On Wed, 21 Apr 2010 12:34:01 -0700, James
> <James(a)discussions.microsoft.com> wrote:
>
> >I have a macro that pastes in some text from a textfile unformatted. I want
> >to bold the first line from the text file. there is a cariage return between
> >the first line and the body of the text in the text file if it helps. Also,
> >after the paste the text is already selected. thanks in advance for any help!
> >
> .
>