Numbered List... Restart numbering in the middle

K

krazykaigh

I have a Word document that I am using bookmarks to basically merge wit
data from my 2007 Access DB. In the code behind the button to fill th
document I have the following (partial code)

Dim yada as yada ' all the dim stuff is up top in the code

Set WordObj = CreateObject("Word.Application")
Set WordDoc = WordObj.Documents.Open _
("C:\Users\ktaylor\Documents\LAST WILL AND TESTAMENT.dotx")
WordObj.Visible = True
Now through the code I "goto" certain bookmarks and insert text. Fo
example:

' Go to the bookmark named "TitleWholeName"
Set WordRange = WordDoc.Goto(What:=wdGoToBookmark
Name:="TitleWholeName")
WordRange.InsertAfter strName

Now I have not defined any list at all. In the document template ther
are 7 numbered paragraphs and between each number, there may be mor
than one paragraph. For example:

III (this is centered in the document - and part of a numbered list)

Blah blah, yada blah yada yada.

IV (this too is centered in the document)

More important text is here, yada, something else.

(this is where I would like to insert a new paragraph number, followe
by another paragraph of text. I have a Bookmark name NewPara alread
here)

V (this too is centered and a list number item)

A paragraph may or may not be inserted above this one. Yada, blah, yad
yada blah.

So, I would like to know how to insert a line number at the bookmar
NewPara

Thanks for any help in advance
 
K

krazykaigh

Venky62;492920 said:
Your question is not clear
Are you using automatic numbering for the paragraphs, or are yo
manually typing I, II, III etc. at each place
How often do you have to do this? If it is just once in a while, the
may be simpler to do it manually
Do you have to insert number only at one paragraph or many such place
in between
Your answers may help participants to help you

I tried to upload a file but the size restrictions would not let m
upload a one-page sample. So I will try to be more clear

I am using a .DOTX (Word 2007 Template). It is a complete document wit
bookmarked locations throughout it.

There are already Numbered paragraphs (like bullets but numbers). Th
numbered paras separate from the text paragraphs, like this
START SAMPLE


This is the first paragraph
I
This is the second paragraph
Now this could be the third paragraph but in may not be numbered
II
Then another paragraph

END SAMPL

Now everything is properly spaced in the real document. The numbers ar
autonumbered, so if I remove one, the others automatically change
appropriately

I think it will be easier to add numbers to particular bookmarks to loo
like it is properly numbered , rather than trying to ge
.range.applydefaultnumber to change the numbers

I have tried so many combos but either a paragraph gets a new numbe
added to it, and then inserts a new paragraph with the next number o
some other unexpected outcome

And, there is really only one paragraph that would need the numbe
added. If someone wants a special distribution on their will, th
program adds that paragraph. Normally they don't, so it doesn't add tha
paragraph

Have I made this any more clear

Kaig
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top