Try using the \r switch instead of \n. From the description in the "Field
codes: StyleRef field" Help topic, it sounds as if this is what you need:
"Inserts the entire paragraph number of the bookmarked paragraph in relative
context - or relative to the paragraph numbering scheme - without trailing
periods."
--
Suzanne S. Barnhill
Microsoft MVP (Word)

Signature
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
> I want to get the heading 2 number.
> {SYTLEREF "Heading 2" \n} will get the Heading 1 number too, e.g., "2.3".
> How can I get rid of "2." and remain only "3" ?
Hi Suzanne,
> Try using the \r switch instead of \n. From the description in
> the "Field codes: StyleRef field" Help topic, it sounds as if this
> is what you need:
"Sounds as if" -- perhaps; but the \r switch does the same as the \n switch
for me.
Probably the developers out-smarted themselves, because they couldn't figure
out what to implement from the description.
> "Inserts the entire paragraph number of the bookmarked paragraph
> in relative context - or relative to the paragraph numbering scheme -
> without trailing periods."
What in h*** is that supposed to mean?
With styleref fields, you don't have any bookmarked paragraphs (except
possibly hidden bookmarks inserted by Word).
And "in relative context - or relative to the paragraph numbering scheme -"
just sounds Greek to me.
;-) Klaus
> --
> Suzanne S. Barnhill
[quoted text clipped - 8 lines]
> > {SYTLEREF "Heading 2" \n} will get the Heading 1 number too, e.g., "2.3".
> > How can I get rid of "2." and remain only "3" ?
Yang Xiangyu - 03 Nov 2003 01:40 GMT
> Hi Suzanne,
>
[quoted text clipped - 18 lines]
>
> ;-) Klaus
Nod. I have tried \r and saw no difference with \n.
I thought that my not understanding help documents of word is due to
my poor english. It seems not my fault now.
> > --
> > Suzanne S. Barnhill
[quoted text clipped - 10 lines]
> "2.3".
> > > How can I get rid of "2." and remain only "3" ?