Results 1 to 5 of 5
  1. #1
    3 Star Lounger
    Join Date
    Jan 2007
    Location
    Massachusetts, USA
    Posts
    249
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Macro generated list of styles (MS Word 2003, SP2)

    Hello,

    I am looking to create a macro that will point to a folder full of .RTF files or .DOC files, collect all the styles from each document; and then output a list
    containing all the MS Word styles found.

    Is this possible to do?

    Thanks,

    Jim

  2. Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

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

    Re: Macro generated list of styles (MS Word 2003, SP2)

    Do you want to create a single list containing all styles, or a separate list for each document?

  4. #3
    3 Star Lounger
    Join Date
    Jan 2007
    Location
    Massachusetts, USA
    Posts
    249
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Macro generated list of styles (MS Word 2003, SP2)

    Hello Hans,

    I just need a single list of all the styles in each document. I am using Microsoft Office Word 2003 SP3.
    Thanks,
    Jim

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

    Re: Macro generated list of styles (MS Word 2003, SP2)

    The attached text file contains a macro ListStyles and an auxiliary procedure AddStyles. You should modify the path in the constant at the beginning of the code.

    The macro will create a new document and fill it with a list of styles. It's slow, so give it a bit of time. The document being processed is displayed in Word's status bar.
    Attached Files Attached Files

  6. #5
    3 Star Lounger
    Join Date
    Jan 2007
    Location
    Massachusetts, USA
    Posts
    249
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Macro generated list of styles (MS Word 2003, SP2)

    Hello Hans,

    Thanks for the Macro. It works greats!

    Jim

Posting Permissions

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