Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Apr 2009
    Posts
    114
    Thanks
    18
    Thanked 0 Times in 0 Posts

    Formatting of macro changes in existing document

    Hello
    I have a Word 2007 macro that creates a letterhead with simple formatting. When I run the macro in a new document it works great. When I run it in an existing document the formatting changes based on the formatting of the existing document. I have a continuous section break after my letterhead text but that doesn't help.

    Thanks for any help you can provide

    mostate

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts
    What specific problems are you running into? For example, margins different than expected, fonts different than expected, paragraph alignment/tab stops/indents different than expect. Margins can be set for the section you care about, but underlying style differences might best be addressed by inserting a pre-built AutoText entry that uses uniquely named styles that won't change when inserted.

  3. #3
    Silver Lounger Charles Kenyon's Avatar
    Join Date
    Jan 2001
    Location
    Sun Prairie, Wisconsin, Wisconsin, USA
    Posts
    2,048
    Thanks
    124
    Thanked 119 Times in 116 Posts
    Consider creating a template for your letterhead rather than using a macro. That is what templates are designed to do. You could do this easily by creating a new document, running your macro, and then saving that document as a template.

    With either a template or the macro you are using, try creating a new document that has your letterhead. Then copy your existing text into that new document.

    Charles Kenyon
    Madison, Wisconsin

    Templates in Microsoft Word
    http://addbalance.com/usersguide/templates.htm

    Intermediate Users Guide to Microsoft Word
    http://addbalance.com/usersguide

    Word 97-2003 FAQ
    http://addbalance.com/word

Posting Permissions

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