Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Long Documents / November 2003

Tip: Looking for answers? Try searching our database.

Help : How to get the relative heading number by STYLEREF?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Yang Xiangyu - 31 Oct 2003 09:12 GMT
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" ?
Suzanne S. Barnhill - 31 Oct 2003 15:44 GMT
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" ?
Klaus Linke - 02 Nov 2003 01:21 GMT
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" ?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.