macro for displaying section field +1 digit?

B

Bob W

The Section field, when added into a document, displays an arabic numeral
showing the section number where it resides.

What syntax would cause display of the section number, incremented by one
digit?

(ie, the Section field, if placed in section 2, displays a "2" but with this
new syntax, would display a "3"; if positioned in section 12 it would
display a "13", etc.)
 
D

Doug Robbins - Word MVP

The following Field construction

{ = { SECTION } + 1 }

You must use Ctrl+F9 to insert each pair of field delimiters and Alt+F9 to
toggle off their display.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
B

Bob W

Doug, this is wierd.

If I choose Insert Field and choose the SECTION macro from the list, i get a
section number displayed in the document.

The resulting field, when made visible with Alt-F9, reads,

{ SECTION \* Arabic \* MERGEFORMAT } and, all is well.


But if I use Ctrl-F9 to insert delimiters and very, very carefully manually
type that very same syntax, I get NO section numeral!

Similarly, when I type the syntax you propose,

{ = { SECTION } + 1}

this also does not produce a section number display.

I also tried,

{ = { SECTION \* Arabic \* MERGEFORMAT } + 1}

....but this does not produce a section number display, either.

Where am I going wrong?
 
D

Doug Robbins - Word MVP

It definitely works here. Did you update the field?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
Top