Lisa:
Thanks for your replies! I do understand it a bit better and enlisted the
help of a co-worker that understands how sections work. My plan is to insert
the requested page number from the user into the first page footer. Then, I
believe I need to create a new section at the end of the first page. The
second section that you mentioned is the one to which I wish to apply the
custom number formatting (3a, 3b, etc.) I think this is correct.
My only problem is that I can't determine how to find the end of a page.
When I find the end of a page, i.e. the last character on the first page, I
think I need to insert a new continuous section break to restart the
numbering for my custom format. Is this assertion true? If so, how do I
find the end of a page? Thanks!
> Forgot to mention, you'd need to specify that Section 2 would also need to be
> specified to restart number at 1...
[quoted text clipped - 18 lines]
> > Section 2 would have the number the user entered, plus an actual page number
> > (which is displayed as an uppercase letter).
Lisa - 06 Feb 2007 19:30 GMT
Here's an approach to inserting a section break at the end of a first page in
a document... I'm guessing that there's a better way, but this seems to work:
Dim totpg As Integer
totpg = Selection.Information(wdNumberOfPagesInDocument)
If totpg >= 2 Then
With Selection
.GoTo What:=wdGoToPage, Count:=2
.InsertBreak Type:=wdSectionBreakNextPage
End With
Else 'if only one page, go to end
Selection.EndKey Unit:=wdStory
End If
AJ - 06 Feb 2007 22:17 GMT
I actually got the solution nailed right after I posted today. I did end up
using just the one default section, and manipulating the available first,
odd, and even footers to my own end. However, you got me thinking more about
working with sections. Thanks again Lisa!
> Here's an approach to inserting a section break at the end of a first page in
> a document... I'm guessing that there's a better way, but this seems to work:
[quoted text clipped - 8 lines]
> Selection.EndKey Unit:=wdStory
> End If