Results 1 to 4 of 4

Thread: Copying Styles?

  1. #1
    New Lounger
    Join Date
    Mar 2002
    Location
    Omaha, Nebraska
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Copying Styles?

    [img]/w3timages/icons/hairy.gif[/img] I'm having a problem copying (through vba code) the paragraph styles from one document into a new blank document (created from normal.dot) when the new blank doc doesn't already have the styles in it. I am receiving an automation error. This worked extremely well in office 97, but now it doesn't work in office 2000. Any ideas?

  2. #2
    4 Star Lounger
    Join Date
    Dec 2000
    Location
    Quakertown, PA, Pennsylvania, USA
    Posts
    517
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Copying Styles?

    I don't see any way to exactly FIX that, but why not use a file other than normal.dot? Or at least get all the files into normal.dot by opening normal.dot directly, type a line of text. Change that line of text to whatever styles you want to use. Delete the line of text, and then save and close normal.dot.

  3. #3
    New Lounger
    Join Date
    Mar 2002
    Location
    Omaha, Nebraska
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Copying Styles?

    Thanks for the info. Actually, I did modify normal.dot to include all of my specific styels late last week and (in testing) it seemed to work fine. I'm awaiting news from the user to see if that completely fixes the problems they are having. Also just trying to see if anyone had any other ideas. Thanks again.

  4. #4
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: Copying Styles?

    It also might be worthwhile posting the code that is causing the error - maybe someone here will be able to spot what's going wrong (then again, maybe not[img]/w3timages/icons/crazy.gif[/img]).

Posting Permissions

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