Results 1 to 4 of 4
  1. #1
    3 Star Lounger
    Join Date
    May 2002
    Location
    Smithfield, Free State, South Africa
    Posts
    210
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Update style by macro (Word 2000/3)

    Hi there
    I have a template that contains styles created by a macro/s.
    To prevent an error when the macro is run, On Error Resume Next is added.
    Now, when we want to update the styles, the on error message overlooks the styles and no changes are made.
    How to I go about updating the style within the macro so that when the user runs the macro, the styles are all updated?
    Regards

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

    Re: Update style by macro (Word 2000/3)

    Can you provide more details, e.g. attach a text file with the relevant code?

  3. #3
    3 Star Lounger
    Join Date
    May 2002
    Location
    Smithfield, Free State, South Africa
    Posts
    210
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Update style by macro (Word 2000/3)

    Hi Hans
    Attached is part of the style and with the updates marked.
    When the macro is run the first time, the styles are created. When I make changes to the macro and run it again, it does not update the fonts. It appears to see that the style already exists and ignores it totally.
    Regards
    Lynden
    Attached Files Attached Files

  4. #4
    3 Star Lounger
    Join Date
    May 2002
    Location
    Smithfield, Free State, South Africa
    Posts
    210
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Update style by macro (Word 2000/3)

    Hans
    It seems to work now.
    Don't know what I did the previous time?
    Thanks anyway.
    Regards

Posting Permissions

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