I'm trying to set bullet points in Power Point VBA. I have the following working code, but it provides numbered bullets. I only want standard bullets.
Any help would be appreciated:
newRow.Cells(8).Shape.TextFrame.TextRange.Text = inputText ' Note this text is multi-line and of type string.
newRow.Cells(8).Shape.TextFrame.TextRange.ParagraphFormat.Bullet.Style = ppBulletCircleNumWDBlackPlain
Any help would be appreciated.
Thank you
You need to change bullet type with BulletFormat.Type property :
Dim tr As TextRange
Set tr = newRow.Cells(8).Shape.TextFrame.TextRange
'change to standard unordered bullet
tr.ParagraphFormat.Bullet.Type = ppBulletUnnumbered
'align bullets
tr.ParagraphFormat.Alignment = ppAlignLeft
Try this to maintain indentation of subsequent lines:
newRow.Cells(8).Shape.TextFrame.TextRange.ParagraphFormat.Bullet.Character = 8226
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.