> That's helpful, but it doesn't answer the question. I want to place a
> field
[quoted text clipped - 7 lines]
> in
> this document);

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Thanks everyone.
By way of explanation, I have a very large document of numbered paragraphs.
I am using Seq fields to apply the numbers.
At the end of every section, I want to leave "reserved" numbers in case I
insert or delete paragraphs, I don't have to renumber the whole document.
I can create a line that says "X to Y is Reserved" where X is the {SEQ \n}
(next number) and the Y is {SEQ \r Z}. I can make Z static (i.e., always
adds 10), and I can even use formulas to make Z always end on a round number
(i.e., I currently have it add between 10 and 19 to get to the next ##9).
I want to be able to vary Z based on the level in the heading outline --
e.g., top level headings will reserve up to the next multiple of 100, 4th
level headings only reserve up to the next multiple of 10. But the only way
to do that is to know what level in the heading outline the current text is
at.
Because many non-sophisticated people will be working in the document, I am
reluctant to use anything that requires code.
I think my workaround will be to add a "tag" to the document based on the
style of the next pargraph using some temporary VBA, and then later I can run
a find/replace to paste in the correct fields based on the type of "tag". I
can either use some reusable code I have to find and replace with a field, or
just put the fields in the clipboard and replace with ^c.
So, thanks for the help. It seems strange that you can't access this info,
since certain fields vary their behavior based on it (e.g., the \h switch in
the SEQ field).
> > That's helpful, but it doesn't answer the question. I want to place a
> > field
[quoted text clipped - 17 lines]
> Sorry the answer isn't more positive, but if it really can't be done, all I
> can say is "it can't be done"
Peter Jamieson - 02 Aug 2007 17:06 GMT
FWIW, I had a pretty good look around at possible ways to do this with
fields - as you say, the \s switch in SEQ fields obviously knows when to
reset the sequence numbering, but I couldn't think of a way to use that.
Things might be easier if you were able to ensure that there was an
appropriate { SET level n } in every Heading n paragraph which you could
then use in subsequent SEQ fields.
Unfortunately, this is one of those areas where the software designers seem
(presumably accidentally, but when it's as thorough as this it sometimes
seems deliberate) to have closed off every possible way you might conceive
of doing it with fields. For example, an obvious possibility would be to
test the value of { LISTNUM LegalDefault \s 1 } (which should look like
1.1., 1.1.1. etc.) using e.g.
{ IF "{ LISTNUM LegalDefault \s 1 }" = "1.1." "were'at level X" "{ IF
.... }" }
but unfortunately, even if the LISTNUM fields always returned the right
values (and that may depend on very consistent use of heading styles,
outline levels etc.) you do not appear to be able to test the result of a
LISTNUM field (or AUTONUMLGL) or assign it successfully via SET for later
testing.
Peter Jamieson
> Thanks everyone.
>
[quoted text clipped - 62 lines]
>> I
>> can say is "it can't be done"