Results 1 to 3 of 3
  1. #1
    Lounger
    Join Date
    Jan 2001
    Location
    Missouri, USA
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cut apart long document (Word 2000/VBA/HTML)

    Hi all,

    I just got tasked with converting a VERY long document into individual web pages. The source doc is RTF (which will come in well in Word,) is organized into several hundred articles within the doc, and needs to end up as each article as its own HTML page. Rather than cutting and pasting each article into a new doc and saving as web page (repeat until wrists either fall off or lock into place forever,) I'd like to use a macro to do this.

    Each article in the document begins with a title (in Title style.) Perhaps there's a way to search for text in Title style, select it and all text up to the next Title style, pop into new doc and save? I'm not concerned with how the individual files are named (some sort of autonumbering would be fine) since I'll have to go thru all of them and double check formatting etc.

    Anyone know how to do this? Or a better approach?

  2. #2
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Cut apart long document (Word 2000/VBA/HTML)

    Hi Tekvet,

    If the Title style is a Heading 1 style, you could use the master document feature:
    Copy the doc into a new folder.
    Change to Outline view,
    select all,
    click on "1" to display the Titles only,
    then on the "Create subdocument" button (see below).

    The "Master document" feature is notoriously buggy, but after you save, you can throw the master document in the trash can; all the subdocuments are in the folder.

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>Klaus
    Attached Images Attached Images

  3. #3
    Lounger
    Join Date
    Jan 2001
    Location
    Missouri, USA
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Cut apart long document (Word 2000/VBA/HTML)

    That will work perfectly! You are a wonderful human <img src=/S/groovin.gif border=0 alt=groovin width=21 height=21>

Posting Permissions

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