I have this problem:
I need to created a numbered list on ms word, this part I know how to do, here's the code I've used:
Set myltemp = ListGalleries(wdOutlineNumberGallery).ListTemplates(2)
myltemp.ListLevels(1).TabPosition = InchesToPoints(0.6)
myltemp.ListLevels(2).TabPosition = InchesToPoints(0.6)
myltemp.ListLevels(1).TrailingCharacter = wdTrailingTab
myltemp.ListLevels(2).TrailingCharacter = wdTrailingTab
myltemp.ListLevels(1).NumberPosition = InchesToPoints(0)
myltemp.ListLevels(2).NumberPosition = InchesToPoints(0)
ListTemplate:=myltemp
ActiveDocument.Paragraphs(initt).Range.ListFormat.ApplyListTemplate ListTemplate:=myltemp
Then I'll just add the items:
ActiveDocument.Range.InsertAfter ("Text 1"
ActiveDocument.Range.InsertParagraphAfter
and so on...
But now, how can I get out of the numbered list and write normal text? because from this point everything I write will be added as an item to the list...
I'd like to get something like:
1-text1
2-text2
3-text3
writing some text....
and not:
1-text1
2-text2
3-text3
4-
5-writing some text....
I'd really appreciate if anyone could help
I need to created a numbered list on ms word, this part I know how to do, here's the code I've used:
Set myltemp = ListGalleries(wdOutlineNumberGallery).ListTemplates(2)
myltemp.ListLevels(1).TabPosition = InchesToPoints(0.6)
myltemp.ListLevels(2).TabPosition = InchesToPoints(0.6)
myltemp.ListLevels(1).TrailingCharacter = wdTrailingTab
myltemp.ListLevels(2).TrailingCharacter = wdTrailingTab
myltemp.ListLevels(1).NumberPosition = InchesToPoints(0)
myltemp.ListLevels(2).NumberPosition = InchesToPoints(0)
ListTemplate:=myltemp
ActiveDocument.Paragraphs(initt).Range.ListFormat.ApplyListTemplate ListTemplate:=myltemp
Then I'll just add the items:
ActiveDocument.Range.InsertAfter ("Text 1"
ActiveDocument.Range.InsertParagraphAfter
and so on...
But now, how can I get out of the numbered list and write normal text? because from this point everything I write will be added as an item to the list...
I'd like to get something like:
1-text1
2-text2
3-text3
writing some text....
and not:
1-text1
2-text2
3-text3
4-
5-writing some text....
I'd really appreciate if anyone could help