MS Word Macros

Eric Gans

New

Coming soon:

Please report bugs/suggestions to me at gans@humnet.ucla.edu

NoteHTML Macro

Unlike Word Perfect, MSWord simply removes the footnotes when you convert a .doc file into HTML--a glaring deficiency when you are running an electronic journal with some pretension to scholarly respectability.

This macro will convert the active Word .doc file to HTML and convert the footnotes as well. If you have both footnotes and endnotes in the file, it will prompt you to either combine them or choose one of the two sets to convert (two separate sets of notes would be cumbersome in an HTML file). The notes are converted to endnotes, including a (back) reference to the text, an indispensable feature in HTML endnotes that Word Perfect leaves out.

Installation Instructions

  1. Download the file NoteHTML.zip to your computer. (Right-click on the link, then go to Save Link As..)
  2. Extract the three files: NoteHTML.bas, NoteHTML_frm.frm, and NoteHTML_frm.frx .
  3. Open Word, then type Alt-F11 to open the Visual Basic window.
  4. Type Ctl-M to open the Import File window.
  5. Import NoteHTML.bas and NoteHTML_frm.frm from the directory to which you downloaded in (2) (two separate operations).
  6. Return to Word by clicking on the "W" icon.
The Note macro is now installed. It can be accessed through the Tools menu, or by typing Alt-F8.

Use Instructions

Make sure the .doc file you are converting is the active document in Word when you run the macro. The simplest way to ensure this is to maximize the window in which it is running.  The macro will close the original .doc file and create a new .htm file with the same filename. Thus if anything goes wrong with the macro, your original file will not be damaged. Of course, a backup is always a good idea.

After the macro has run, you will see the new .htm file on your screen. You can close the file after examining it, as it has already been saved to disk.
 


Eric Gans / gans@humnet.ucla.edu
Last updated: