Results 1 to 6 of 6
  1. #1
    2 Star Lounger
    Join Date
    Oct 2007
    Posts
    172
    Thanks
    0
    Thanked 2 Times in 1 Post

    Style Names changing (2003)

    Hello All,

    i've a query about Style names in Word. I have a template on which documents are based. The template defines a set of styles. People go off and work on the documents and by the time I get them back, quite often the word standard styles (e.g. "Heading 7") have changed names to something like "Heading 7,Annex 2-digit,Appendix,App Heading1,h7".

    This then screws any macros I may have that depend on these stylenames.

    Any idea why this may happen? Pasting a differently-named style based on Heading 7 style from another document might cause this, but what might cause that source style to have a different name? Changing the style itself doesn't change the name, so what might?

    help appreciated!

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Style Names changing (2003)

    I assume that the recipients don't have your template. If you send them your document, the document will use Normal.dot as template instead. The recipients may have changed the names of in styles in their Normal template. For user-defined styles, this will simply change the name itself, but for built-in styles, the new name will be appended. So if someone renames the Heading 1 style to Chapter, the style will actually be named Heading1,Chapter. Your document then takes on these names.

  3. #3
    2 Star Lounger
    Join Date
    Oct 2007
    Posts
    172
    Thanks
    0
    Thanked 2 Times in 1 Post

    Re: Style Names changing (2003)

    Hello again [img]/forums/images/smilies/smile.gif[/img]

    I understand that the name will be taken over /appended if someone else changes the style name. However, the style names that are taken over obviously aren't manually created e.g.

    "Heading 8,Annex Heading 1,Annex 3-digit,(table no.),(requirement),Appendix Heading 1,h8" is just one example i picked randomly.

    Assuming a recipient of the document does not have the template (which they do, but we'll assume otherwise!), how would the style names get changed into something like the above? Changing the style itself, without the template being present?

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Style Names changing (2003)

    You'd have to ask the recipients. Perhaps they have an add-in that imposes obligatory bureaucratic style names. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

  5. #5
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Style Names changing (2003)

    Typically this happens when the users copy and paste content from another document (which does have style name aliases) into one of your clean documents. The only way to stop the behaviour is to ensure that none of the potential source documents include these aliases. Typically this is a huge task since people copy and paste from all manner of sources and you can't really expect to catch them all.

    I would recommend you run a simple macro to remove the style aliases from a file any time you notice them. <post#=338,863>post 338,863</post#> has a copy of this macro but don't get too bogged down in the rest of the topic in that thread because it is a different to your problem.
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  6. #6
    2 Star Lounger
    Join Date
    Oct 2007
    Posts
    172
    Thanks
    0
    Thanked 2 Times in 1 Post

    Re: Style Names changing (2003)

    Thanks for the link to that macro. I'd actually already considered writing the same macro, to search through the style names and remove all the garbage in the names following the first ",". In my case, i wasn't convinced that that was a hard and fast rule so i didn't do it. I'll double check that though because all of this is otherwise a right pain in the @#$!%!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •