- Copy the
Sub InsertBarCodes()Routine to the clipboard by highlighting it and pressing Ctrl + C. - In Microsoft Word, Open the Visual Basic Editor by pressing Alt + F11
- Insert a new Module, by clicking on Insert|Module
- Paste the code into the module
- Run the macro by going to the “Tools” menu, selecting “macro” and clicking on “Macros” and then double clicking on “InsertBarCodes” from the list.
Macros, add-ins, and DDE
Insert barcodes into the header or footer of a document
Use a Word macro with B-Coder Pro to put barcodes in the header or footer of a Word document, so they appear on every page.
Make sure you enable the macros when opening the document. In Word 2000 also make sure that the macro security level is set to medium. (Check under Tools|Macro|Security).
Last modified on November 3, 2026