Re: Word Macros

Subject: Re: Word Macros
From: John -dot- Cornellier -at- PARIS -dot- IE -dot- PHILIPS -dot- COM
Date: Mon, 8 Sep 1997 12:23:48 +0200

Geri Lou Ciotoli asked for some help with macros.

I have written some Word 6 Basic code which is rather, er, basic, but which does
something very useful using simple code and some IF/THEN logic. It also has some
nice extras: counter, bookmark, msgbox.

FrameMaker has styles for tables. In Word you have to format each table
individually. This macro applies the same formatting - which is embedded in the
macro - to all the tables in the doc.

The code does the following:

1. Puts cursor in first line of doc.
2. Checks whether cursor in a table. It does this by executing a command which,
if not in a table, causes an error.
3. If the macro detects an error, it puts the cursor in the next line down and
goes back to Step 2. However if there's no error, ie the cursor is in a table,
then it applies some formatting. Note that _all_ tables in the doc are formatted
in the same way. To change the way it is formatted, edit the stuff after
TableAutoFormat and TableRowHeight.
4. When the cursor is on the last line of the doc, the macro puts the cursor
back to where it was when the macro was executed (a frill).
5. Displays how many tables edited (c'est bon pour le morale).

Anyone wanting more info, write me offline.

John Cornellier
mailto:john -dot- cornellier -at- paris -dot- ie -dot- philips -dot- com

TECHWR-L (Technical Communication) List Information: To send a message
to 2500+ readers, e-mail to TECHWR-L -at- LISTSERV -dot- OKSTATE -dot- EDU -dot- Send commands
to LISTSERV -at- LISTSERV -dot- OKSTATE -dot- EDU (e.g. HELP or SIGNOFF TECHWR-L).
Search the archives at http://www.documentation.com/ or search and
browse the archives at http://listserv.okstate.edu/archives/techwr-l.html


Previous by Author: SUMMARY: upgrade to Word97?
Next by Author: Re: Analyzing Word Styles
Previous by Thread: Re: Word Macros
Next by Thread: Changes in Career


What this post helpful? Share it with friends and colleagues:


Sponsored Ads