Article ID: 123057
Article Last Modified on 11/23/2006
Sub MAIN
Dim TOV As ToolsOptionsView
GetCurValues TOV
If TOV.ShowAll = 0 Then
ToolsOptionsView .ShowAll = 1
Change$ = "yes"
End If
EditBookmark .Name = "ClearFormats", .Add
StartOfDocument
EditFind .Find = "^d XE", .Direction = 0, .MatchCase = 0,
.WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .Format =
0, .Wrap = 1
While EditFindFound()
ResetChar
EditFind
Wend
StartOfDocument
EditFind .Find = "^dXE", .Direction = 0, .MatchCase = 0,
.WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .Format =
0, .Wrap = 1
While EditFindFound()
ResetChar
EditFind
Wend
EditSelectAll
UpdateFields
EditGoTo .Destination = "ClearFormats"
If Change$ = "yes" Then ToolsOptionsView .ShowAll = 0
End Sub
Method 3:
Sub MAIN
Dim TOV As ToolsOptionsView
GetCurValues TOV
If TOV.ShowAll = 0 Then
ToolsOptionsView .ShowAll = 1
Change$ = "yes"
End If
EditBookmark .Name = "ClearFormats", .Add
StartOfDocument
EditFind .Find = "^d TC", .Direction = 0, .MatchCase = 0,
.WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .Format =
0, .Wrap = 1
While EditFindFound()
ResetChar
EditFind
Wend
StartOfDocument
EditFind .Find = "^dTC", .Direction = 0, .MatchCase = 0,
.WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .Format =
0, .Wrap = 1
While EditFindFound()
ResetChar
EditFind
Wend
EditFind .Find = "^19 toc"
SendKeys "{F9}%e{enter}"
EditGoTo .Destination = "ClearFormats"
If Change$ = "yes" Then ToolsOptionsView .ShowAll = 0
End Sub
122706 Table of Contents Shows Wrong Formatting
Additional query words: fields macros toc index update updating xe tc direct manual format formatting
Keywords: kbformat kbmacroexample kbprb kbfield KB123057