If (Doc.Application.Selection.Range.Characters(3).Font.Superscript = True AndAlso Doc.Application.Selection.Characters(4).Font.Superscript = True) Then wsel.SetRange(wsel.Start + StartChar - 1, wsel.Start + EndChar) wsel.Font.Superscript = True Document.Selection.MoveRight(Unit:=WdUnits.wdCharacter, Count:=1) ElseIf (Document.Application.Selection.Text.ToUpper() = "CA++") Then wsel.Font.Superscript = False End If
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)