![]() |
|
|
Thread Tools | Display Modes |
#2
|
||||
|
||||
![]()
You should not be modifying a document that way. rather, you should create a Style with the desired characteristics (or modify an existing one) and apply that. For example, the following macro does what you ask by modifying & applying Word's 'Normal' Style:
Code:
Sub FormatActiveDocument() Application.ScreenUpdating = False With ActiveDocument With .Styles(wdStyleNormal).Font .Name = "Arial" .Size = 14 .ColorIndex = wdDarkBlue End With With .Range .Style = wdStyleNormal .ParagraphFormat.Reset .Font.Reset End With End With Application.ScreenUpdating = True End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
font, font color, macro |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
When changing table style in Word 2010, font size seems to change but doesn't show in new tables | heartsoulliving | Word | 1 | 12-07-2016 05:17 PM |
Word macro doesn't change font color | Spideriffic | Word VBA | 8 | 11-04-2015 03:47 AM |
![]() |
MikeD | Word | 3 | 06-01-2014 03:40 AM |
![]() |
shaukat74 | Word VBA | 1 | 01-29-2013 09:34 PM |
changing font size without changing leading | carolns | Word | 1 | 09-14-2009 12:30 PM |