Sub UpdatepersianTOC() ' ' UpdatepersianTOC Macro ' ' Dim i As Integer, n As Integer…
- User
Sub UpdatepersianTOC() ' ' UpdatepersianTOC Macro ' ' Dim i As Integer, n As Integer
codeApplication.ScreenUpdating = False n = ActiveDocument.TablesOfContents.count For i = 1 To n ActiveDocument.TablesOfContents(i).Update ActiveDocument.TablesOfContents(i).UpdatePageNumbers ActiveDocument.TablesOfContents(i).Range.Select selection.RtlPara selection.font.Name = "B lotus" selection.font.NameBi = "B lotus" selection.font.Italic = True selection.font.Italic = False selection.font.size = 13 selection.font.Italic = False selection.font.ItalicBi = False selection.font.Italic = False selection.font.ItalicBi = False selection.font.SizeBi = 13 selection.paragraphs().CloseUp selection.paragraphs().SpaceBefore = 0 selection.paragraphs().SpaceAfter = 0 If i > 1 Then selection.font.BoldBi = False selection.font.Bold = False End If Next i
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.