The solution I proposed first seems to work just fine.
If I go into one of the Normal style paragraphs with bullets, and "select
all 2 instances", I can then appy a bullet style (odrazka-popis-pole or some
other style).
If you want to find all paragraphs with this bullet, no matter what style is
applied, you can use something like the two code samples I gave in my first
reply, say like this:
Dim myPara As Paragraph
For Each myPara In ActiveDocument.Paragraphs
If myPara.Range.ListFormat.ListString <> "" Then
If Hex(AscW(myPara.Range.ListFormat.ListString)) = "F0D7" Then
If Selection.Range.ListFormat.ListTemplate.ListLevels(1).Font.Name =
"Symbol" Then
' next two lines just for debugging:
myPara.SelectNumber
MsgBox "Here:"
myPara.Style = ActiveDocument.Styles(wdStyleListBullet)
' ... or apply some other of your styles
End If
End If
End If
Next myPara
Mystery for me still is how Word deal with styles.
If I have style Normal and select this text and press Crtl+B - is it still
style Normal, but BOLD
The "bold" is then applied on top of the style as manual formatting...
something that should be avoided.
An occasional bold or italic word is ok, but applying some manual formatting
to the whole document or a whole paragraph isn't usually a good idea.
I don't know than how to hold the same look of the text.
Mostly is it problem if I get the document from someone else than is very
hard to make a new formating.
I mean e.g. select text with Normal style - the Normal text looks
different - sometime is bold, sometime italic, but still Normal style.
The docs almost certainly contain lots of manual formatting. Sometimes it's
best to remove all manual paragraph formatting (ResetPara = Ctrl+Q) and font
formatting (Ctrl+Spacebar), and then apply proper paragraph (and possibly
character, list and table) styles.
Or in newer versions of Word, you can use the "styles and formatting" pane.
Turn on "Keep track of formatting" (Tools > Options > Edit), and you see all
the types of manual formatting that have been applied (... visible in the
pane by the missing symbol, ¶ or ª). Use "Select all # instances" again, and
apply a proper style.
Regards,
Klaus