Use macros and VBA to create barcodes in Microsoft Word

Use BarCodeWiz Code 128 Fonts functions in your own macros and VBA code

  • This macro is equivalent to clicking on Selection To Barcode on the toolbar.
Sub MyMacro()
   Application.Run ("CODE128_SelectionToBC") 
End Sub                    
                

The following functions are equivalent to clicking on Code 128 Fonts BarCodeWiz toolbar:

  • Application.Run ("CODE128_Options") : Opens the Options window.
  • Application.Run ("CODE128_SelectionToBC") : Converts the selected text to barcode.
  • Application.Run ("CODE128_ConvertAll") : Converts each instance of text surrounded with brackets into barcodes.
  • Application.Run ("CODE128_Undo") : Undoes the previous operation.