![]() |
#2
|
|||
|
|||
![]()
Hi! What about this one:
Code:
Function ChangeFont(oDoc As Document) As Boolean Dim oStory As range On Error GoTo err_Handler For Each oStory In oDoc.StoryRanges If oStory.Font.Name = "Arial" Then oStory.Font.Name = "Calibri" End If Next oStory Set oStory = Nothing lbl_Exit: Exit Sub err_Handler: ChangeFont = False Resume lbl_Exit End Function |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Creating a text style which only changes the font and font size? | Jenson | Word | 3 | 03-04-2024 02:54 AM |
![]() |
Matt C | Word VBA | 3 | 10-31-2021 05:54 AM |
![]() |
laith93 | Word VBA | 7 | 08-27-2021 11:37 PM |
Change Normal Style | JohnM | Word | 2 | 03-23-2016 07:40 AM |
![]() |
sus4n | Outlook | 3 | 08-07-2014 06:17 PM |