The macro whose code is contained in the text file, "Fraction Macro.txt" will allow the user of MS Word 2000 (previous couple of versions as well) to hit the key combination of  "Ctrl Alt /" and all fractions in the active document will be formatted to look the same as the few that word does automatically.  The cursor is returned to where it was when the macro started.


I can appreciate that most folks have never used vba or written a macro, so
I've tried to make this very simple.

1.  Save the attached file, fraction_macro.txt, to your hard drive.  Open
it, choose Edit>Select All and then Edit>Copy.  With the contents now in the
clipboard, close the text file.

2.  Open Word

3.  Click Alt + F11

4.  In the upper left of the VB editor you should see a project Window
(tiny).  By clicking the plus signs to the left, expand the "Normal"
followed by "Modules" and then double click "New Macros"

5.  In the new Window that shows up for new macros, place the cursor
immediately after any macros you've already written (probably not going to
be necessary)

6.  Paste the contents of the clipboard into this Window.  There are no Save
buttons to click, just close the VB editor Window and you should be back
with a normal Word document Window.

7.  Click Tools>Customize

8.  In the "Save In" box at the bottom of the window, make sure "Normal.dot"
is selected.

9.  Hit the "keyboard" button at the bottom of the window

10.  In the "categories" box, select macros (probably right below a dotted
line)

11.  In the "Macros" box, select "FractionWash"

12.  Hit Alt + n

13.  Enter Alt + Ctrl + /

14.  Click the "Assign" button

15.   Close, Close

That is it.  You can test the macro.  The fractions that get changed end up
with a shaded box over them because they have been converted to Word fields.
This only shows on the monitor, they will print without the shading.  If you
have a number that consists of an integer and a fraction, be sure to place a
space between the two and the formatting will work fine in that situation.
