How to add bullet in comment using Word VBA?

心不动则不痛 提交于 2019-12-11 08:16:26

问题


I want to add bullet in second line.

Public Sub AddComment()
  Selection.Comments.Add Range:=Selection.Range
  With Selection
    .Font.Bold = True
    .TypeText "Test Bold: Bold Text"
    .TypeText "This text has bullet" & vbNewLine
    .TypeText "This is simple text"
  End With 
End Sub

Above code add Font.Bold style in first line. I want to add bullet in second line only. In the third line, there should not have bullet. Can anybody please suggest me?

来源:https://stackoverflow.com/questions/39292065/how-to-add-bullet-in-comment-using-word-vba

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!