![]() |
|
#5
|
||||
|
||||
|
Try this
Code:
Sub Macro1()
Dim aRng As Range, iType As Integer
On Error GoTo EndSub 'footnotes story may not exist in all docs
For iType = 1 To 2
Set aRng = ActiveDocument.StoryRanges(iType) 'wdMainTextStory = 1, wdFootnotesStory = 2
With aRng.Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = ""
.Replacement.Text = ""
.Font.Italic = True
.Replacement.Style = ActiveDocument.Styles("Emphasis")
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchKashida = False
.MatchDiacritics = False
.MatchAlefHamza = False
.MatchControl = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.Execute Replace:=wdReplaceAll
End With
Next iType
EndSub:
End Sub
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
| Tags |
| italics, italics style, replace |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| italics for another language | mga | Word | 1 | 04-16-2018 03:58 AM |
| How can I find paragraphs all in italics? | Robert2 | Word | 1 | 01-28-2014 02:54 PM |
Font style keeps changing to Italics
|
B33J | Word | 1 | 07-24-2013 01:46 PM |
| How to retain italics when pasting from PDF? | WaltR | Word | 0 | 03-01-2011 04:01 PM |
| Spellcheking, grammar and italics | Rosseiro | Word | 0 | 08-20-2010 10:07 PM |