Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I can't find anywhere on the internet how to change the font of a textbox to small caps. I've tried many variations of the failing line but can't get it to work. Can someone help?

With objPPTTextbox.TextFrame.TextRange
    .Text = "Title"
    .Font.Size = 14
    .Font2.Smallcaps = msoTrue  ---Fails here!---
    .Font.Name = "Calibri"
    .ParagraphFormat.Alignment = 2
End With
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
233 views
Welcome To Ask or Share your Answers For Others

1 Answer

Here is the answer thanks to this website

objPPTTextbox.TextFrame2.TextRange.Font.Smallcaps = msoTrue

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...