Text with different styles in one paragraph Word VBA
问题 I want to have bold and not bold text in one line. With objWrdDoc .Styles.Add ("S2") .Styles.Add ("S3") .Styles("S2").Font.Bold = True .Styles("S3").Font.Bold = False End With With objWrdApp.Selection .TypeParagraph .Style = objWrdDoc.Styles("S2") .TypeText Text:="I want to have bold " .Style = objWrdDoc.Styles("S3") .TypeText Text:="and not bold text in one line." End With As a result, the entire text is not bold. 回答1: While working with the Selection object feels "intuitive", it's not as