Hi Sahana,
Run the macro ShowLists that I sent you in your post called "Error"
(
http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?&l...).
It will show how many lists Word finds in your document. From the results,
you should be able to determine which lists need to be broken up into
separate lists. If you need to break up a list into two lists, select the
applicable list items for one of the lists, press Shift+Ctrl+N to apply the
Normal style or apply a non-list style, then apply bulleting or a style with
bulleting. Then run the macro again to see the result.
--
Hope this helps,
Pesach Shelnitz
- Show quoted text -
Hi I just tried to record equivalent of Shift + ctrl +N , I found that
Selection.Range.Style = ActiveDocument.Styles(wdStyleNormal) is the
equivalent.
Is it possible or sensible to add this Selection.Range.Style =
ActiveDocument.Styles(wdStyleNormal) first and then start the macro?
Do u think ll that be a good option.
I have tired something of that sort below, you can ofcourse help me in
improving that. But the amcros i tried just oesnt work. hope u help
me
Sub jf()
Dim lList As Long
Dim oRng As Range
For lList = ActiveDocument.Lists.Count To 1 Step -1
Set oRng = ActiveDocument.Lists(lList).ListParagraphs(1).Range
Selection.Range.Style = ActiveDocument.Styles(wdStyleNormal)
With oRng
.Collapse Direction:=wdCollapseStart
.MoveStart Unit:=wdSentence, Count:=-1
.MoveEnd Unit:=wdCharacter, Count:=-1
If .Characters.Last <> ":" Then
.InsertAfter Text:=":"
End If
If InStr(1, .Text, "various") Then
ActiveDocument.comments.Add Range:=oRng, Text:="AVOID"
If InStr(1, .Text, "as follows") Then
ActiveDocument.comments.Add Range:=oRng, Text:="AVOID"
End If
End If
End With
Next lList
End Sub