1
我想將不等於9的字體大小更改爲9. 但彈出「編譯錯誤:預期表達式」。使用Word VBA更改字體大小
Sub FindReplaceStyle()
With ActiveDocument.Content.Find
.ClearFormatting
With .Font
.Size <> 9
End With
.Format = True
With .Replacement
.ClearFormatting
With .Font
.Size = 9
End With
End With
.Execute Forward:=True, Replace:=wdReplaceAll, _
FindText:="", ReplaceWith:=""
End With
End Sub