Greetings,
I'm using VBA to create a MS Word table and am trying to populate a single cell with a mixture of regular text ("First line of text") and a bulleted list underneath ("Bulleted List 1", etc). When I run the following snippet it applies bulleting to the entire contents of the cell, not just the last paragraph. Any help getting me on the right track would be appreciated!
tbl1.Cell(5, 2).range.InsertAfter "First line of text"
tbl1.Cell(5, 2).range.InsertParagraphAfter
tbl1.Cell(5, 2).range.InsertAfter "Bulleted List 1" & vbNewLine & _
"Bulleted List 2" & vbNewLine & _
"Bulleted List 3" & vbNewLine & _
"Bulleted List 4" & vbNewLine
With tbl1.Cell(5, 2).range.Paragraphs.Last
.range.ListFormat.ApplyBulletDefault
End With
I'm using VBA to create a MS Word table and am trying to populate a single cell with a mixture of regular text ("First line of text") and a bulleted list underneath ("Bulleted List 1", etc). When I run the following snippet it applies bulleting to the entire contents of the cell, not just the last paragraph. Any help getting me on the right track would be appreciated!
tbl1.Cell(5, 2).range.InsertAfter "First line of text"
tbl1.Cell(5, 2).range.InsertParagraphAfter
tbl1.Cell(5, 2).range.InsertAfter "Bulleted List 1" & vbNewLine & _
"Bulleted List 2" & vbNewLine & _
"Bulleted List 3" & vbNewLine & _
"Bulleted List 4" & vbNewLine
With tbl1.Cell(5, 2).range.Paragraphs.Last
.range.ListFormat.ApplyBulletDefault
End With