Re: Is the bullet of a list considered to be a range? by rVo
rVo
Wed Jan 18 09:06:27 CST 2006
Thanks Helmut,
The problem is: I'm not sure what I'm looking for because I need to create a
report based on documents which were created by a number of different
authors, each using Word up to his/her possibilities. The have a template to
write their text in, this should result in decent lists with a correct font
and a nice bullet. But the problem with Word is that you can do things in
many different ways, including bulleted lists. So it seems to happen that
some paragraph which obviously is a bulleted list acually is some
handcrafted lookalike and that is (one of the many situations :-) when
things start to go wrong.
Actually I'm not really interested in the bullet's font, I might change
every bullet to a certain symbol as well. This way I avoid a lot of
difficulties but there should still be a possibility to have different
levels in the lists and ofcourse use a different bullet for each level.
"Helmut Weber" <nbhymsjxdgcn@mailinator.com> schreef in bericht
news:5q6qs1tfhmtt1l4aeclft4prl7urelddhs@4ax.com...
> Hi rVo,
>
> umm..., this could become a long story.
> Don't expect too much at once.
>
> It seems, that you are not searching for genuine listparagraphs,
> but for paragraphs where probably a bullet and a tab
> were inserted manually at the start of the paragraph.
>
> To check this, try:
>
> 'Sub CheckList()
> 'Dim l As Long
> 'With ActiveDocument.ListParagraphs
> ' For l = 1 To .Count
> ' .Item(l).Range.Select
> ' Next
> 'End With
> 'End Sub
>
> If my assumption is right, then you have as a first step
> to find paragraphs, which start with a bullet and a tab.
>
> This is easier said than done, as the bullet character
> may not reveal it's font name just like that, when not formatted
> directly, but inserted via the dialog "insert symbol".
>
> Before I continue further, is my assumption right?
>
> And one remark more:
> ...Range.Font.Name returns "" if there is a character
> somewhere in the range with a font different from some
> other character's font in the range. Could be, that the bullet
> is the cause for this, but you'll never know.
>
> Don't give up.
>
> --
> Greetings from Bavaria, Germany
>
> Helmut Weber, MVP WordVBA
>
> Win XP, Office 2003
> "red.sys" & Chr$(64) & "t-online.de"
>
>