Here is codes for creating barcode using VBA Macro.

Read more:

https://github.com/JonasHeidelberg/barcode-vba-macro-only