Change all styles in document

S

Sammy

Hello,

I have Word 2003. I know how to change the font for one style in my document:

Activedocument.Styles("BodyText").ParagraphFormat.Alignment =
wdAlignParagraphJustify

but is there a way to change All the styles in the document (not just the
ones that are being used but all styles) to Times New Roman 12pt?

Thanks for any help you can give!
 
J

Jean-Guy Marcil

Sammy said:
Hello,

I have Word 2003. I know how to change the font for one style in my document:

Activedocument.Styles("BodyText").ParagraphFormat.Alignment =
wdAlignParagraphJustify

but is there a way to change All the styles in the document (not just the
ones that are being used but all styles) to Times New Roman 12pt?

Try this:

Dim i As Long

With ActiveDocument.Styles
For i = 1 To .Count
If .Item(i).Type = wdStyleTypeParagraph Then
.Item(i).Font.Name = "Times New Roman"
End If
Next
End With
 
A

Angie M.

Works great, thank you!

Jean-Guy Marcil said:
Try this:

Dim i As Long

With ActiveDocument.Styles
For i = 1 To .Count
If .Item(i).Type = wdStyleTypeParagraph Then
.Item(i).Font.Name = "Times New Roman"
End If
Next
End With
 

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