Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
Represents the size of the characters in the text range in points. Read/write.
Syntax
expression.Size
expression An expression that returns a Font object.
Return value
Variant
Example
This example inserts text and then sets the font size of the seventh word of the inserted text to 20 points.
Sub IncreaseFontSizeOfSelection()
With Selection.TextRange
.InsertBefore vbLf & "This is a demonstration of font size."
.Words(7).Font.Size = 20
End With
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.