Re: Subject: RE: Saving MS Word Pages as Docs
Re: Subject: RE: Saving MS Word Pages as Docs
- Subject: Re: Subject: RE: Saving MS Word Pages as Docs
- From: Ric Phillips <email@hidden>
- Date: Thu, 22 Feb 2001 11:10:42 +1100
>
> I need a droplet that will save each page as a separate new document from
>
> a MS Word document.
>
> Microsoft Office 98 Mac Edition
>
> MacOS 8.6
>
That is a tough one because the dictionary in Word doesn't have "page" as a
>
class or property or anything that I could find. Is there another way that
>
you could break it up (by text flow, paragraph, etc)? Your other option is
>
to learn a little Visual Basic and see if that offers any commands referring
>
to pages.
There is no such thing as a page in Word's object model. (Well technically
there is, but its part of the Forms collection - and is used in custom
dialog boxes etc.) Nor is there anything that goes by another name, but
would still be a page from the user's point of view. 'Pages' are very fluid
things in word processors. They should not be confused with the sheets of
paper on which the document will be printed. Manual page-breaks can be found
as a character via VBA. (Or AS if you are a masochist) But most page breaks
are dynamic, ie, not actually embedded anywhere in the document as an
object. So, you can't test for them.
In AS, save is usually a command. In VBA, save is a method. Word's all
powerful selection and range objects have no save methods. Despite which
there is no method to select a 'page'.
The; select, make new doc, paste, and save sequence won't work either
because there is no direct VBA method for loading every text area, (headers,
footers, text boxes as well as the regular text), on any given 'page' into a
range, selection or bookmark.
Having said that, there is a pageNumber property - so moving through
everything in a document and adding it to a selection based on what page
it's on might be possible (in VBA).
You might like to try the following newsgroups,
micorsoft.public.office.developer.vba
micorsoft.public.office.mac
micorsoft.public.word.vba.beginners
And depending on your version:
micorsoft.public.word.macword2001 or
micorsoft.public.word.macword98
There's a good chance some word guru has already figured out an elegant VBA
answer to your problem.
(If it's any consolation, remember you are not trying to write a program,
you are "developing information management solutions")
Hope this helps
Ric Phillips
Computer Laboratory Support Officer
Faculty of Humanities and Social Sciences
La Trobe University
9479 2792