|
发表于 2024-10-8 07:35
来自手机
|
显示全部楼层
Sub pptsupptsubpt() 'Superscript/Subscript
Dim sld As Slide, shp As Shape, pCount&
With Application.ActivePresentation
For Each sld In .Slides
For Each shp In sld.Shapes
If shp.Type = msoTextBox Then
With shp.TextFrame.TextRange
pCount = .Characters.Count
For i = 1 To pCount
If .Characters(i, 1) = "m" Then
If .Characters(i + 1, 1) = "2" Or _
.Characters(i + 1, 1) = "3" Then
.Characters(i + 1, 1).Font.Superscript = msoTrue
'.Characters(i + 1, 1).Font.Color.RGB = RGB(0, 0, 255)
End If
End If
Next
End With
End If
Next
Next
End With
End Sub |
评分
-
1
查看全部评分
-
|