Ginstrom IT Solutions (GITS)

HtmlEntities Word Macro

Download HtmlEntities


This Word macro inserts Unicode characters into your document by HTML entity name or Unicode value. For example, you would enter the string "mdash" to insert an mdash into the document at the cursor position. The entity names in the HTML 4 character entity reference are supported.

HtmlEntities input box

To Install

  • Download the HtmlEntities macro file, and unzip it to the file HtmlEntities.bas.
  • Launch Microsoft Word
  • Press Alt + F11
    The Microsoft Visual Basic window appears.
  • From the File menu, select Import File...

    Import macro menu selection

  • Import the HtmlEntities.bas file.
    Close the Visual Basic window.

To Use

Press Alt + F8 to get the macro window, specify the macro "InsertHtmlEntity," and click Run. An input box prompts you for an HTML entity:

HtmlEntities input box

The HTML entity you entered is inserted into the Word document at the cursor location.

If you will be using the macro more frequently, then you can assign it a keyboard shortcut. To do so,

  1. Select Tools >> Customize
  2. Click Keyboard
  3. Set the "Categories" to Macros, and "Commands" to InsertHtmlEntity
  4. Select "Press new shortcut key," and press your keyboard shortcut.
  5. Click Assign.