Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Automation of conversion of styles in documents

7 views
Skip to first unread message

Business Solutions

unread,
Jul 11, 2002, 7:17:03 AM7/11/02
to
Greetings, and sorry for the cross-post to start with,

I have hundreds of documents and with a new corporate style about to
launch, all the documents need to be converted to the new style. This style
includes header/footer graphics, font types and sizes for different
headings/body texts and new bullet points.

I have the new style already setup in a template, and the Styles running
under the styles drop-down box... Alt+1,2,3 etc etc.

First of all, it is macros that I'm after?

Is it possible to create a macro/procedure that will convert from old to new
without much input? I'm thinking along the lines of a macro that will take
e.g.. heading 1 and simply alter the font and size, then move on to see if
heading 2 exists, if so, convert it to font x size y etc etc.

Is it possible? And if so, how would I go about developing it??


-Many thanks in advance,

George Hewitt
Business Solutions
----
PS Please can you reply to the group


Suzanne S. Barnhill

unread,
Jul 11, 2002, 8:03:39 AM7/11/02
to
As far as styles are concerned, you need only attach your new template with
"Automatically update document styles" checked. But this will *not* affect
document-level formatting such as margins, headers/footers, etc. For those,
you'd be better off using Insert | File to insert the old documents into a
new blank document based on the new template. Note, however, that the new
document must not be *completely* empty: you need at least two paragraph
marks, or else Word will insert the old file intact (totally illogical and
counterintuitive but an observed phenomenon).

Note that two of the NGs you cross-posted to (microsoft.public.word.general
and microsoft.public.word.wordbasic) no longer exist on Microsoft's servers,
and microsoft.public.word.word97vba is (I believe) little used. For VBA
questions, you would be better advised to use
microsoft.public.word.vba.general or others in the microsoft.public.word.vba
hierarchy. If you are not accessing Microsoft's servers directly, you can
click on the link below and an account for msnews will be set up in your
newsreader.

news://msnews.microsoft.com/microsoft.public.word.pagelayout

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word

"Business Solutions" <a...@b.com> wrote in message
news:agjpff$etr$1...@knossos.btinternet.com...

Howard Kaikow

unread,
Jul 16, 2002, 8:17:39 AM7/16/02
to
Yes, one can write macros to select documents and change the styles in those
documents.

One approach would be to put an AutoOPen macro in each relevant template.
The AutoOpen could make the needed updates as documents are opened 1 by 1.
Ort, you could have a macro that gets a bunch of files automagically, or a
macro that runs only when invoked by the user.

You don't say which version of Word.
In any case, take a look at the lists of WordBasic and Word VBA books at my
URL below.
--
http://www.standards.com/; Programming and support for Word macros,
including converting from WordBasic to VBA; Technical reviewing; Standards;
Product functional/design/specifications
------------------------------------------------


"Business Solutions" <a...@b.com> wrote in message
news:agjpff$etr$1...@knossos.btinternet.com...

0 new messages