Format existing documents

  • Thread starter Thread starter Garry Rathbone
  • Start date Start date
G

Garry Rathbone

I have a client who has stacks of documents that have
been recently converted to Word from WordPerfect. Is
there an easy way of changing the margins for these
documents? Or am I going to be writing some VBA code? Any
help or pointers to websites are much appreciated.

Cheers,

Garry
 
Other than for reference, he shouldn't be using converted documents.

Easy way?

Create a template with the margins you want.

Create a new document from the template.

Copy the text from the converted document and use Paste Special - Plain Text
to paste into the new document. Reformat the new document using styles.

You can do the last two steps (new doc, copy, paste special) using a macro
and can write a macro that does it for every file in a folder. The applying
styles, though, would have to be done by hand. You end up with documents
that can be reliably used in Word, which, IME converted documents cannot.

What follows is my general advice on converting documents (repeating some of
the above).

I would not recommend using converted documents long-term. They will be
filled with formatting anomolies that will get you at the worst time. This
is especially true of any documents containing automatic numbering or
bullets. Try recreating form documents in Word using the following process:

In Word Perfect (if you still have it, in Word if not) save your files as
text files.

Use your converted files as references to show you how you want your
formatting to look.

Create a new document in Word and insert the text from the text file. Save
this new document as a Word template. Format it the way you want using
styles, not direct formatting. Save it again.

To use a template within Word, use File => New and pick your template. This
will create a new document for you.

More advice to pass on to your friend:


Word and Word Perfect work very differently from one another. Each program's
methods have strengths and weaknesses; but, if you try to use one of these
programs as if it were the other, it is like pushing on a string! You can
easily make a lot of extra work for yourself. If you are unwilling to take
the time to learn to use Word's methods, you should stick to using Word Pad.
You'll have a lot less grief, although you'll miss out on a lot of raw
power.

See <URL: http://www.mvps.org/word/FAQs/General/WordVsWordPerfect.htm>
<URL: http://www.mvps.org/word/FAQs/General/TipsAndGotchas.htm>
<URL: http://www.mvps.org/word/FAQs/General/RevealCodes.htm>
<URL: http://www.mvps.org/word/FAQs/General/WordPerfectConverters.htm>
<URL:
http://businesssoft.about.com/compute/businesssoft/library/blconvert.htm>
for information on Word for Word Perfect users.

For more:
<URL: http://www.mvps.org/word/FAQs/Customization/CreateATemplatePart2.htm>
<URL: http://www.mvps.org/word/FAQs/Customization/CreateATemplatePart1.htm>
<URL: http://www.mvps.org/word/FAQs/Numbering/WordsNumberingExplained.htm>
<URL: http://www.mvps.org/word/FAQs/Customization/WhatTemplatesStore.htm>

In Word 2000 (or later) You can get the function keys to display in a
special toolbar at the bottom of the screen if you want (something like
pressing F3 twice in WP). The following macro will do this.
Sub ShowMeFunctionKeys()
Commandbars("Function Key Display").Visible = True
End Sub

Learn about Styles - really learn! I resisted for years and now regret every
day of those years because although that string was still very hard to push,
it kept getting longer and longer, and had some very important projects tied
to it!

Hope this helps.
--

Charles Kenyon

See the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
Charles, thanks for your help. The copy->paste special
will be useful for another batch of documents that need
to be converted. However, there are 4,000 documents that
have already been converted! These are documents that
could be required to be reprinted at any time. The main
changes are to margins and font to accommodate new
stationery. I take it from your reply that the only way
this can happen in the future is via a vb routine?

On a general note I remember reading an article somewhere
about setting Word up on a network. Each user will have
their own personal copy of Normal.dot. What is your
recommendation for controlling company styles in this
situation? Or can you point me in the direction of a good
link? I've had a look on the MVP site and can't seem to
find the answer.

Cheers,


Garry
 
vba for resetting margins:
On the MVP FAQ site on the vba FAQ there is a page on doing a find and
replace on all documents within a folder. This is called batch processing.
That code could be modified to change all the margins or fonts in documents
in a particular folder.

Company styles: The real answer is to have a good group of custom templates
and use those for generating new documents. Those templates have your
styles. I only use documents generated from normal.dot as scratch pads, just
as I would not type a letter on my legal pad when I have letterhead
available.

Other than that, it is possible to have master templates containing styles
and have other templates update their styles from those masters when
creating a new document. Special care has to be taken with styles that
contain automatic numbering.

I believe that earlier I gave you my references on Word Perfect to Word.
Read those before doing anything with Automatic numbering and before going
much further on Word template development. A key to using word is to
differentiate between templates and documents. A document should not be
normally used as the basis for generating other documents. A template should
not be typed in and printed. A new document should be generated based upon a
template and the document modified to fit the situation, printed, and
usually saved. This process is very simple if the templates are stored in
the user templates folder or the workgroup templates folder (or a subfolder
in those folders). Using File => New gives access to all of those templates
and the default action there is to generate a new document based on a
template. Note that templates are not simply documents with a .dot
extension, they have a different file format that is recognized and depended
upon by Word.

--

Charles Kenyon

See the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
Charles,

Thanks for the pointer to the MVP code. I've already
written the code but I'll check it to make sure I'm not
missing anything!

I agree totally with you regarding basing new documents
on templates and not existing documents. However, the
problem here is that the documents are used in a legal
practice with their practice management system. The PMS
performs mailmerges with the documents, so the users
never really see the .doc files. Sorry, I should have
made that clear in my first message.

I think I have enough information to move ahead now.
Thanks for all your help.

Cheers,

Garry
 
Back
Top