Hi,
Both, I want to make a report so that there are different levels of headings (heading style) and then body text (normal paragraph style). Numbering for the style are as follows:
heading style 1 = 1, 2, 3
heading style 2 = 1.1, 1.2, 2.1, 2.2
paragraph style = no number
These will then be put into a table of contents (hence why I am using Word's built in styles).
Quote:
|
Try for the options in Selection.Range.ListFormat.
|
I am fairly new to VBA and I do not know how this can know that the selection is the bookmark. Also, I have been looking on the internet and I got the impression that you need to know the name of the specific list style. If so what is the name of the above style (it is just a standard Word list style).
Also, it is to be applied to the whole document (if that is easier to do).
Thanks
Christine
P.S. I think I am closer to the selection code but I cannot quite get it right. This is what I have come up with so far:
Code:
Private Sub btnFormat2_Click()
Range("para1").Select
Selection.range.ListFormat.ApplyListTemplateWithLevel(listTemplate, level1)
End Sub