1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Word2007 StyleRef, Content Contol, and Formatting problems - Refs return in <>'s!

Discussion in 'Business Applications' started by rgmatthes, Nov 12, 2008.

Thread Status:
Not open for further replies.
Advertisement
  1. rgmatthes

    rgmatthes Thread Starter

    Joined:
    Nov 12, 2008
    Messages:
    6
    This is probably an easy fix, but it requires a little explanation.

    I want to make a content control with styled text in it, then reference that style to copy the text to appropriate places throughout the doc.

    The problem is, whenever I make the style reference, little brackets (<>'s) appear surrounding the resulting text. I'm sure the brackets are from the tags that mark the beginning and end of the content control (colored yellow in attached picture), but nonetheless I can't get rid of them! Word always seems to include those tags in the formatting I apply to the text in the content control. It's driving me nuts!

    Any ideas would be really appreciated. I could send you the actual doc if requested. Please help me!
     

    Attached Files:

  2. jimr381

    jimr381

    Joined:
    Jul 20, 2007
    Messages:
    4,175
    Welcome to the forum

    I would prefer that you zip and post the file instead of sending it, but you cannot post a file until you have 7 posts or so. If you send me a message, then I will reply so that I can post the document for others to see.
     
  3. rgmatthes

    rgmatthes Thread Starter

    Joined:
    Nov 12, 2008
    Messages:
    6
    To see the problem I'm having, just follow these steps:

    1. Open Word 2007.
    2. Create a new plain text content control. Enter "Test Phrase" as its value.
    3. Select the entire content control by double-clicking on the little blue tag that appears on it's left side.
    4. Apply the "Heading 1" style.
    5. Go a few lines down and insert a Style Reference to Heading 1. (Insert->Quick Parts->Field...->StyleRef->Heading 1->OK.)

    I need those brackets (<>'s) removed!!
     
  4. jimr381

    jimr381

    Joined:
    Jul 20, 2007
    Messages:
    4,175
    OK I reread your first post. What are you trying to accomplish by doing it this way instead of just applying styles to the text?
     
  5. rgmatthes

    rgmatthes Thread Starter

    Joined:
    Nov 12, 2008
    Messages:
    6
    We're using Content Controls to automatically change the document's *properties* (Author, Title, Subject, Company, etc.).

    We're using styles to automatically update text throughout the doc (with StyleRefs, I can make one change to change a client's name throughout the doc).

    So some pieces of information can be considered both a document property AND text that needs updating through the doc (for instance, the client's name would need updating, and the Company document property would also need updaing).

    Our idea was, then, to have one field be both a Content Control AND stylized text, so when we change that one field, both the document property AND the style references update automatically.

    Do you have a better idea? This isn't set in stone yet, so suggestions are welcome!!!

    And THANK YOU for helping me! :)
     
  6. jimr381

    jimr381

    Joined:
    Jul 20, 2007
    Messages:
    4,175
    What about text and a cross-reference to reference that text throughout the document?
     
  7. rgmatthes

    rgmatthes Thread Starter

    Joined:
    Nov 12, 2008
    Messages:
    6
    I don't think I understand how cross-references work. It looks like I can only reference certain reference types, and my data isn't one of those reference types (it's not an equation, a figure, a header, etc.).

    How can I made a cross-reference to simple text? Wouldn't my original method be easier?
     
  8. jimr381

    jimr381

    Joined:
    Jul 20, 2007
    Messages:
    4,175
    Type your name and format it with the Heading 1 style. Go down further in the document and insert the cross-reference. Have it reference the text. Now whenever you update that original entries text the cross-referenced items will update as well. You will want to select heading as the cross-reference type.
     
  9. rgmatthes

    rgmatthes Thread Starter

    Joined:
    Nov 12, 2008
    Messages:
    6
    Hmmm.... Let me play around with this a bit. Thanks again for your help!!
     
  10. jimr381

    jimr381

    Joined:
    Jul 20, 2007
    Messages:
    4,175
    Not a problem. Let me know if that works out for you. If not we can look at other avenues as well. It does seem to be what you are looking for sans remembering formatting from the initial entry. The formatting can be applied via a style though.
     
  11. jimr381

    jimr381

    Joined:
    Jul 20, 2007
    Messages:
    4,175
    I cannot download attachments on the PC I am on. Did you try the heading style and cross-reference option that I told you about?
     
  12. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/768631