R
RWN
Wrd2k
I thought I'd try and get a handle on using styles in a template that
I'm setting up (vs. doing it through VBA). Wanted to do this after a lot
of reading about styles and becoming convinced that it was "the only way
to go" in Word.
I have three headings (using the built in "Heading 1, 2 & 3") that are
to appear on the left side of the page.
The user wants the heading repeated on the right side in a smaller
Font/emphasis etc.
I couldn't see how I could do it except by defining another heading on
the next line.
I set up three user defined styles ("shd1" ..2 & ..3). Then, modified
the "Heading x" styles "Format for the following paragraph" to point at
my user defined styles.
This worked very well (format the text as "Heading x" - <enter> and it
sets up the appropriate subheading format).
Then I wanted to have Word automatically fill in the subheading(s), and
that's where I got into trouble!
I inserted fields using a "StyleRef" in the user defined subheadings,
pointing each to the "Heading x" value that precedes
it. This worked like a charm UNTIL I deleted the headings/closed the
template and opened it as a "New" document to test it.
While the formatting and subheading process works I no longer have the
"StyleRef" values.
(I should note that I used the "StyleRef" in the Header-pointing at the
Heading 1 value-and it works fine.)
Am I missing something here or am I correct in assuming that a
"StyleRef" cannot "live" in a user defined heading?
Any "hints"??
I thought I'd try and get a handle on using styles in a template that
I'm setting up (vs. doing it through VBA). Wanted to do this after a lot
of reading about styles and becoming convinced that it was "the only way
to go" in Word.
I have three headings (using the built in "Heading 1, 2 & 3") that are
to appear on the left side of the page.
The user wants the heading repeated on the right side in a smaller
Font/emphasis etc.
I couldn't see how I could do it except by defining another heading on
the next line.
I set up three user defined styles ("shd1" ..2 & ..3). Then, modified
the "Heading x" styles "Format for the following paragraph" to point at
my user defined styles.
This worked very well (format the text as "Heading x" - <enter> and it
sets up the appropriate subheading format).
Then I wanted to have Word automatically fill in the subheading(s), and
that's where I got into trouble!
I inserted fields using a "StyleRef" in the user defined subheadings,
pointing each to the "Heading x" value that precedes
it. This worked like a charm UNTIL I deleted the headings/closed the
template and opened it as a "New" document to test it.
While the formatting and subheading process works I no longer have the
"StyleRef" values.
(I should note that I used the "StyleRef" in the Header-pointing at the
Heading 1 value-and it works fine.)
Am I missing something here or am I correct in assuming that a
"StyleRef" cannot "live" in a user defined heading?
Any "hints"??