mysterious forward slash when I use StyleRef field


B

Beth Obenshain

I am using the UI to insert a styleref field in the header of my Word 2007
document. From the Insert ribbon, I select Quick Parts and then Field. I
select the StyleRef field and under Style name I select Heading 1. I don't do
anything else - I click OK and this is what I get:

/Install and Configure the Investigation Server

What is causing the forward slash? I did shift F9 to look at the code and it
looks just like it did in Word 2000 where this worked fine:

{STYLEREF "Heading 1" \* MERGEFORMAT }

In the Heading 1 that I want to reference, I have verified that there is
nothing but a space between the chapter number and chapter name. I do use a
different character style for the chapter number - but like I said - this
worked in Word 2000.

I'll appreciate any help that someone can provide.
 
Ad

Advertisements

R

Robert M. Franz (RMF)

Hello Beth

Beth said:
I am using the UI to insert a styleref field in the header of my Word 2007
document. From the Insert ribbon, I select Quick Parts and then Field. I
select the StyleRef field and under Style name I select Heading 1. I don't do
anything else - I click OK and this is what I get:

/Install and Configure the Investigation Server

What is causing the forward slash? I did shift F9 to look at the code and it
looks just like it did in Word 2000 where this worked fine:

{STYLEREF "Heading 1" \* MERGEFORMAT }

In the Heading 1 that I want to reference, I have verified that there is
nothing but a space between the chapter number and chapter name. I do use a
different character style for the chapter number - but like I said - this
worked in Word 2000.

have you other instances of a Heading 1 in the document that show the
same odd behavior? If not, I'd simply delete the whole paragraph and
recreate the heading to see if this changes something.

HTH
Robert
 
B

Beth Obenshain

Hi Robert,

This happens on some H1s and not others. I cannot figure out the pattern. It
happens and doesn't happen on both even and odd chapter numbers; one-word and
multi-word H1 titles.

I have deleted and re-created all the H1s in the document.

I appreciate you responding, but I'm still looking for clues!
 
R

Robert M. Franz (RMF)

Beth said:
This happens on some H1s and not others. I cannot figure out the pattern. It
happens and doesn't happen on both even and odd chapter numbers; one-word and
multi-word H1 titles.

I have deleted and re-created all the H1s in the document.

I appreciate you responding, but I'm still looking for clues!

doesn't ring a bell here. Could you strip down the document to a couple
of pages only, with at least one working and one "bogus" STYLEREF in it?
Then send it to my email address ("send to poster" or some sucht command
in the web interface).

HTH
Robert
 
B

Beth Obenshain

Robert,

I just e-mailed you a stripped down version of my troublesome document. I'll
be very interested in learning what I've done wrong!

Thanks very very much for your help.
 
Ad

Advertisements

R

Robert M. Franz (RMF)

Hello Beth

Beth said:
I just e-mailed you a stripped down version of my troublesome document. I'll
be very interested in learning what I've done wrong!

OK, got it.

It's definitely something odd with that heading. When I converted the
whole paragraph to Normal style (CTRL-SHIFT-N) and back again to a
Heading 1 or Heading 2, the slash was again there in the appropriate
STYLEREF field.

That means that whatever peculiarity it's coming from, it's probably
burried somewhere in the paragraph mark.

I fiddled around with it a bit, deleting the text and re-inserting it in
the same paragraph, and even got to a state where STYLEREF was showing
the slash in the end of the field (after the text) instead of at the start.

Anyway, what worked here was to select the whole text of the heading
*without* the paragraph mark (it really helps to display all
non-printing characters at least during that sort of work), cutting the
text, then deleting the paragraph. Then, set the cursor to the end of
the paragraph above it ("Chapter"), click RETURN to get a new paragraph,
paste special the text ("unformatted Unicode text" only, for instance --
shouldn't matter though), and re-assign Heading 1 style.

On a general note: the document has around 50% too many styles for my
taste (FWIW :)). Displaying non-printing characters showed a whole lot
of bookmarks, so I went looking into the bookmark dialog and there were
many, many OLE links that seem to indicate that a lot of text has been
link-pasted into the document (or rather: from it, or within it). Unless
you are very sure that these are really needed, one might want to clean
up there a bit (programmatically, I guess, running through the bookmarks
collection and cleaning up some or all -- the gurus in the .vba groups
can tell you what to look out for here).

HTH
Robert
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top