View Single Post
 
Old 12-30-2012, 09:16 AM
gmaxey gmaxey is offline Windows 7 32bit Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,601
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default Continue SEQ field numbering across documents

I have a document "Doc 1.docm" using SEQ fields numbering:

{SEQ A}
{SEQ A}
{SEQ A}

I've bookmarked the last field "End"

In a second document "Doc 2.docm," I want to continue the seqeunce numbering starting with the last number in Doc 1.

This is what I've come up with. Doc 2 starts with two specially constructed SEQ A fields. The first field is bookmarked "Start"

{ SEQ A \R {=1 + { Quote { INCLUDETEXT "Doc 1.docm" End \!} } }
}
{ SEQ A \R { ={ Start } + 1 }}

I can simplify this a bit and eliminate the "Start" bookmark if I rename the sequence in Doc 2:


{ SEQ B \R {=1 + { Quote { INCLUDETEXT "Doc 1.docm" End \!} } }
}
{ SEQ B}

Is there better way? Thanks.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote