karitaat@hotmail.com was telling us:
karitaat@hotmail.com nous racontait que :
> Jean-Guy,
>
[quoted text clipped - 20 lines]
> Now: please help me to (re?)invent how I can get to the the next
> CaptionNumber.
If you must... It does sound like a lot of work... But as long as someone is
paying for it! ;-)
I guess the easiest would be to do two searches:
1) Look backward for the first instance of a paragraph with a Heading 1
style, get its number (using the ListTemplate property)
2) See in the document how many fields with the field code "SEQ Table \*
ARABIC " are present, add one to get the next one.

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
karitaat@hotmail.com - 06 Oct 2006 12:38 GMT
Hi all,
just for the record: I owe myself (and posterity: eg. anybody
interested in tweaking CaptionLabels) an answer.
By far the easiest way to get a preview of what the CaptionNumber will
be is: have Word finding it out ;-)
At _Initialize of my usrForm I
* freeze the Window;
* insert an English CaptionString in the document;
* Turn it into a differentLanguage CaptionString
CaptionString is: LocalCaption<Space>{NumberField}<Tab>
* Read out that string, and show it in the usrForm.
In this way Word does the accounting for me!
If user selects a different Caption: I replace the CaptionString with a
new one
If user Cancels: I delete the CaptionString
If user accepts: I am done
Oh, and I found out something interesting.
I was under the false impression that the layout of a CaptionNumber
would be remembered in the Document.
Nope: it is remembered in Normal.dot
Cheers,
peter
Jean-Guy Marcil schreef:
> karitaat@hotmail.com was telling us:
> karitaat@hotmail.com nous racontait que :
[quoted text clipped - 39 lines]
> jmarcilREMOVE@CAPSsympatico.caTHISTOO
> Word MVP site: http://www.word.mvps.org