kalyan
Thu Nov 29 05:07:41 PST 2007
Actually if i modify my code as follows
Dim rngTarget As Word.Range
Dim oPara As Word.Paragraph
Set rngTarget = Selection.Range
With rngTarget
Call .Collapse(wdCollapseEnd)
.End = ActiveDocument.Range.End
For Each oPara In .Paragraphs
If oPara.Range.ListFormat.ListType = WdListType.wdListBullet
Then
If oPara.Range.Text="Hearing aids" then
oPara.Range.Select
Selection.Delete Unit:=wdCharacter, Count:=1
End if
End If
Next
End With
then i get the output as follows
output
-----------
* Diagnostic hearing exams.
* [Routine Hearing tests]
* [Fitting and evaluation for hearing aids]
*
now how 2 handle this case??
On Nov 27, 10:53 pm, "fumei via OfficeKB.com" <u37563@uwe> wrote:
> The code looks a little odd to me as well.
>
> The last paragraph is bulleted because the code removes the text, but does
> not change the style. Change the style.
>
> --
> Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-programming/200711/1