How do I make first line of selected text bold?

J

James

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!
 
J

Jay Freedman

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
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 
J

James

That worked great, thank you!

Jay Freedman said:
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
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top