Re: Determine full paragraph number string by EmpyreanEmpathy
EmpyreanEmpathy
Fri Dec 12 10:47:26 CST 2003
Oui, Jean-Guy, Shift-Ctrl without F9 was a typo and should have been
Shift-Ctrl-F9.
Klaus, you say "(useful if you want to make it independent of the
English version)." Why would anyone want to do that? (Ha ha ha.)
I almost felt smart for a half second until you came along and showed
all the other STYLEREF examples. It's back to the scarecrow mode for
me while you fly straight to the Wizard with Toto under your arm.
Showoff! - Bruce
"JGM" <no-spam@leaveme.alone> wrote in message news:<u#8eKrFwDHA.2880@tk2msftngp13.phx.gbl>...
> "Klaus Linke" <fotosatz_kaufmann@t-online.de> a écrit dans le message de
> news: ugU9wsEwDHA.2368@TK2MSFTNGP09.phx.gbl...
> > Hi Bruce,
> >
> > Didn't think of that possibility... nice!
>
> Very nice indeed!
>
> > It would be useful if you want to reference the current number.
> >
> > The method should work with any style.
>
> It does (and so do all the examples you provided below!), I just tested it
> under Word XP.
>
> Cheers!
> --
> _______________________________________
> Jean-Guy Marcil
> jmarcil@sympatico.ca
>
>
> > { STYLEREF 1 } is just a shortcut for { STYLEREF "Heading 1" } ...
> > (useful if you want to make it independent of the English version).
> >
> > { STYLEREF "List Number" \S } ... should work, too.
> >
> > { STYLEREF 3 \w } would give you 5.1)i)
> > With your method, you get the pure number (at least in Word2002, I do),
> > so
> > { STYLEREF 1 \S }.{ STYLEREF 2 \S }.{ STYLEREF 3 \S }.
> > will get you 5.1.i., even if the styles use 5., 1), and i)
> >
> > Greetings,
> > Klaus
> >
> >
> >
> > "Bruce Brown" <EmpyreanEmpathy@aol.com> wrote:
> > > Trevor
> > >
> > > There is yet another way to do this provided you are using the
> > > built-in Heading styles (it will not work without them):
> > >
> > > { STYLEREF 1 \S }{ STYLEREF 2 \S }{ STYLEREF 3 \S ) = 5.1)i)
> > >
> > > This use of the STYLEREF field is undocumented but can come in very
> > > handy.
> > >
> > > Selecting the field and pressing Shift-Ctrl converts the field to
> > > text, should you want to do that.
> > >
> > > The whole thing could be automated in VBA as well. Hope this gives you
> > > another alternative. - Bruce
> >
> >