Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Plentyodough Plentyodough is offline
external usenet poster
 
Posts: 1
Default Auto Formatting Imported Text

I am importing data from notepad into Word 2007. There are several hundred
data sets. Each data set contains 10 lines. Each data set needs to have the
same font style applied to it however this font is different from others
being used elsewhere in the document. The first word in each line needs to
be bold. How can this be automated?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Auto Formatting Imported Text

You haven't said how you are importing the text, however the following macro
will format 10 lines of selected text with the font Times New Roman and
apply the bold attribute to the first word on each line

With Selection
.Font.Name = "Times New Roman"
.Words(1).Font.Bold = True
.Collapse
For i = 1 To 9
.MoveDown wdLine, 1
.Words(1).Font.Bold = True
Next i
End With

http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Plentyodough wrote:
I am importing data from notepad into Word 2007. There are several
hundred data sets. Each data set contains 10 lines. Each data set
needs to have the same font style applied to it however this font is
different from others being used elsewhere in the document. The
first word in each line needs to be bold. How can this be automated?



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting Graphs imported from Excel SabrineV Microsoft Word Help 2 October 12th 06 08:20 AM
Formatting selected text auto-applies to all text! Rozonus Page Layout 1 October 11th 06 05:42 PM
Auto Text Formatting Susan B. Quinn Microsoft Word Help 2 June 16th 05 05:56 PM
text auto formatting Hastie Microsoft Word Help 1 April 28th 05 02:33 PM
Can I apply auto-formatting to text in the same manner as Auto Cor DBishop Microsoft Word Help 2 February 8th 05 10:27 PM


All times are GMT +1. The time now is 10:23 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"