Programmer_n
08-24-2016, 04:42 AM
In VBAexpress i found a code to convert bullet points to paragraph
Sub ReplaceBullets()
Dim oPara As Paragraph
For Each oPara In Selection.Paragraphs()
If oPara.range.ListFormat.ListType = wdListBullet Then
oPara.range.ListFormat.RemoveNumbers _
NumberType:=wdNumberParagraph
oPara.range.InsertBefore Text:=" "
oPara.range.Text = Replace(oPara.range.Text, Chr(13), " ")
End If
Next
End Sub
Can the reverse be done? Converting paragraph to bullet points?
example this
On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document. You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks. When you create pictures, charts, or diagrams, they also coordinate with your current document look.On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document. You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks. When you create pictures, charts, or diagrams, they also coordinate with your current document look.
to
On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document.
You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks.
When you create pictures, charts, or diagrams, they also coordinate with your current document look.On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document.
You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks. When you create pictures, charts, or diagrams, they also coordinate with your current document look.
Sub ReplaceBullets()
Dim oPara As Paragraph
For Each oPara In Selection.Paragraphs()
If oPara.range.ListFormat.ListType = wdListBullet Then
oPara.range.ListFormat.RemoveNumbers _
NumberType:=wdNumberParagraph
oPara.range.InsertBefore Text:=" "
oPara.range.Text = Replace(oPara.range.Text, Chr(13), " ")
End If
Next
End Sub
Can the reverse be done? Converting paragraph to bullet points?
example this
On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document. You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks. When you create pictures, charts, or diagrams, they also coordinate with your current document look.On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document. You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks. When you create pictures, charts, or diagrams, they also coordinate with your current document look.
to
On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document.
You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks.
When you create pictures, charts, or diagrams, they also coordinate with your current document look.On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document.
You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks. When you create pictures, charts, or diagrams, they also coordinate with your current document look.