Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
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 | |
|
|
![]() |
||||
Thread | Forum | |||
Formatting Graphs imported from Excel | Microsoft Word Help | |||
Formatting selected text auto-applies to all text! | Page Layout | |||
Auto Text Formatting | Microsoft Word Help | |||
text auto formatting | Microsoft Word Help | |||
Can I apply auto-formatting to text in the same manner as Auto Cor | Microsoft Word Help |