После нескольких попыток я нашел код, если он кому-то нужен, пожалуйста, найдите его ниже.
Sub InsertCustomBulletList()
If ActiveWindow.Selection.Type = ppSelectionText Then
With ActiveWindow.Selection.TextRange
With ActiveWindow.Selection.TextRange.Lines(1).ParagraphFormat.bullet
.Visible = msoTrue
.UseTextColor = msoTrue
.Font.name = "Your font"
.Character = 0 'Character in ASCII Dec
.Font.Color.RGB = RGB(0, 0, 0)
End With
With ActiveWindow.Selection.TextRange.Lines(2).ParagraphFormat.bullet
.Visible = msoTrue
.UseTextColor = msoTrue
.Font.name = "Your font"
.Character = 0 'Character in ASCII Dec
.Font.Color.RGB = RGB(0, 0, 0)
End With
With ActiveWindow.Selection.TextRange.Lines(3).ParagraphFormat.bullet
.Visible = msoTrue
.UseTextColor = msoTrue
.Font.name = "Your font"
.Character = 0 'Character in ASCII Dec
.Font.Color.RGB = RGB(0, 0, 0)
End With
With ActiveWindow.Selection.TextRange.Lines(4).ParagraphFormat.bullet
.Visible = msoTrue
.UseTextColor = msoTrue
.Font.name = "Your font"
.Character = 0 'Character in ASCII Dec
.Font.Color.RGB = RGB(0, 0, 0)
End With
With ActiveWindow.Selection.TextRange.Lines(5).ParagraphFormat.bullet
.Visible = msoTrue
.UseTextColor = msoTrue
.Font.name = "Your font"
.Character = 0 'Character in ASCII Dec
.Font.Color.RGB = RGB(0, 0, 0)
End With
With ActiveWindow.Selection.TextRange.Lines(6).ParagraphFormat.bullet
.Visible = msoTrue
.UseTextColor = msoTrue
.Font.name = "Your font"
.Character = 0 'Character in ASCII Dec
.Font.Color.RGB = RGB(0, 0, 0)
End With
With ActiveWindow.Selection.TextRange.Lines(7).ParagraphFormat.bullet
.Visible = msoTrue
.UseTextColor = msoTrue
.Font.name = "Your font"
.Character = 0 'Character in ASCII Dec
.Font.Color.RGB = RGB(0, 0, 0)
End With
With ActiveWindow.Selection.TextRange.Lines(8).ParagraphFormat.bullet
.Visible = msoTrue
.UseTextColor = msoTrue
.Font.name = "Your font"
.Character = 0 'Character in ASCII Dec
.Font.Color.RGB = RGB(0, 0, 0)
End With
With ActiveWindow.Selection.TextRange.Lines(9).ParagraphFormat.bullet
.Visible = msoTrue
.UseTextColor = msoTrue
.Font.name = "Your font"
.Character = 0 'Character in ASCII Dec
.Font.Color.RGB = RGB(0, 0, 0)
End With
With ActiveWindow.Selection.TextRange.Lines(10).ParagraphFormat.bullet
.Visible = msoTrue
.UseTextColor = msoTrue
.Font.name = "Your font"
.Character = 0 'Character in ASCII Dec
.Font.Color.RGB = RGB(0, 0, 0)
End With
With ActiveWindow.Selection.TextRange.Lines(11).ParagraphFormat.bullet
.Visible = msoTrue
.UseTextColor = msoTrue
.Font.name = "Your font"
.Character = 0 'Character in ASCII Dec
.Font.Color.RGB = RGB(0, 0, 0)
End With
With ActiveWindow.Selection.TextRange.Lines(12).ParagraphFormat.bullet
.Visible = msoTrue
.UseTextColor = msoTrue
.Font.name = "Your font"
.Character = 0 'Character in ASCII Dec
.Font.Color.RGB = RGB(0, 0, 0)
End With
With ActiveWindow.Selection.TextRange.Lines(13).ParagraphFormat.bullet
.Visible = msoTrue
.UseTextColor = msoTrue
.Font.name = "Your font"
.Character = 0 'Character in ASCII Dec
.Font.Color.RGB = RGB(0, 0, 0)
End With
With ActiveWindow.Selection.TextRange.Lines(14).ParagraphFormat.bullet
.Visible = msoTrue
.UseTextColor = msoTrue
.Font.name = "Your font"
.Character = 0 'Character in ASCII Dec
.Font.Color.RGB = RGB(0, 0, 0)
End With
With ActiveWindow.Selection.TextRange.Lines(15).ParagraphFormat.bullet
.Visible = msoTrue
.UseTextColor = msoTrue
.Font.name = "Your font"
.Character = 0 'Character in ASCII Dec
.Font.Color.RGB = RGB(0, 0, 0)
End With
With ActiveWindow.Selection.TextRange.Lines(16).ParagraphFormat.bullet
.Visible = msoTrue
.UseTextColor = msoTrue
.Font.name = "Your font"
.Character = 0 'Character in ASCII Dec
.Font.Color.RGB = RGB(0, 0, 0)
End With
With ActiveWindow.Selection.TextRange.Lines(17).ParagraphFormat.bullet
.Visible = msoTrue
.UseTextColor = msoTrue
.Font.name = "Your font"
.Character = 0 'Character in ASCII Dec
.Font.Color.RGB = RGB(0, 0, 0)
End With
With ActiveWindow.Selection.TextRange.Lines(18).ParagraphFormat.bullet
.Visible = msoTrue
.UseTextColor = msoTrue
.Font.name = "Your font"
.Character = 0 'Character in ASCII Dec
.Font.Color.RGB = RGB(0, 0, 0)
End With
With ActiveWindow.Selection.TextRange.Lines(19).ParagraphFormat.bullet
.Visible = msoTrue
.UseTextColor = msoTrue
.Font.name = "Your font"
.Character = 0 'Character in ASCII Dec
.Font.Color.RGB = RGB(0, 0, 0)
End With
With ActiveWindow.Selection.TextRange.Lines(20).ParagraphFormat.bullet
.Visible = msoTrue
.UseTextColor = msoTrue
.Font.name = "Your font"
.Character = 0 'Character in ASCII Dec
.Font.Color.RGB = RGB(0, 0, 0)
End With
End With
End If
End Sub