none
How to copy Styles from one document to other RRS feed

  • Question

  • Hi All,

    I have downloaded a document from this link. This document has a style as "CodeSample", when i copied the text that is with this style, the copied text is not formatted properly, due to non-availability of the style in the new document.

    Now, can any one tell me how to copy that style from one document to another?

    Thanks for reading.


    Every thing is perfect as long as you share
    Monday, June 6, 2011 4:55 PM

Answers

  • The document you refer to is using the default style names (Heading 1, 2, Normal, etc) and thus when you copy the text from this document to another the receiving document's style settings for these standard names take precedence. Manually you can do one of the following.

    1. Keep this document just the way it is. Make a copy of it, giving it a new name, make alterations or delete all of the text and save it as a template. Attach it to a new blank document and all of the styles will now be the default for that new document.

    2. Change your Word > Options > Advanced > Cut, Copy & Paste settings for "Pasting between documents when the style definition conflicts" to Kepp Source Formatting.

    3. Go to View > Macros > View Macros and choose the Organizer button. From there select Styles and copy all of this documents styles into your Normal template, which will overwrite your styles. That maybe good or bad!!!

    If you want to do any of the above via an automated method such as through VBA, VB.Net, etc, post back.

    Hope this helps


    Kind Regards, Rich ... http://greatcirclelearning.com
    Monday, June 6, 2011 6:36 PM
  • Hi Chakravaty

    This kind of question is best asked in a venue that supports end-user questions. You'll find many more people there who do this kind of thing on a regular basis. For example:
    http://answers.microsoft.com/en-us/office/forum/word

    Also, whenever you ask a question about an Office application please do include which VERSION you're using as that can affect the answer and any instructions you may be given.

    FWIW, though, if a style is not available in a document, when you copy text formatted with that style it should be imported into the target document unless you've changed Word's default settings.


    Cindy Meister, VSTO/Word MVP
    Tuesday, June 7, 2011 3:07 PM
    Moderator

All replies

  • The document you refer to is using the default style names (Heading 1, 2, Normal, etc) and thus when you copy the text from this document to another the receiving document's style settings for these standard names take precedence. Manually you can do one of the following.

    1. Keep this document just the way it is. Make a copy of it, giving it a new name, make alterations or delete all of the text and save it as a template. Attach it to a new blank document and all of the styles will now be the default for that new document.

    2. Change your Word > Options > Advanced > Cut, Copy & Paste settings for "Pasting between documents when the style definition conflicts" to Kepp Source Formatting.

    3. Go to View > Macros > View Macros and choose the Organizer button. From there select Styles and copy all of this documents styles into your Normal template, which will overwrite your styles. That maybe good or bad!!!

    If you want to do any of the above via an automated method such as through VBA, VB.Net, etc, post back.

    Hope this helps


    Kind Regards, Rich ... http://greatcirclelearning.com
    Monday, June 6, 2011 6:36 PM
  • Hi Chakravaty

    This kind of question is best asked in a venue that supports end-user questions. You'll find many more people there who do this kind of thing on a regular basis. For example:
    http://answers.microsoft.com/en-us/office/forum/word

    Also, whenever you ask a question about an Office application please do include which VERSION you're using as that can affect the answer and any instructions you may be given.

    FWIW, though, if a style is not available in a document, when you copy text formatted with that style it should be imported into the target document unless you've changed Word's default settings.


    Cindy Meister, VSTO/Word MVP
    Tuesday, June 7, 2011 3:07 PM
    Moderator
  • Hi Chakravaty,

    Any update?


    Best Regards, Calvin Gao [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, June 10, 2011 10:17 AM
    Moderator