From: James on 21 Apr 2010 15:34 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 21 Apr 2010 18:49 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 22 Apr 2010 10:35 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! > > > . >
|
Pages: 1 Prev: Length Textbox Next: for each oPara in Paragraphs touches each paragraph twice |