Using Barcode Formulas in Excel



It is extremely easy to create and print barcodes in Excel. Functions like generating a check digit, formatting the barcode string and adding of start/stop characters are also supported in Microsoft Office Macros. Before you begin, please make sure that ConnectCode has been installed on your computer.

Adjusting Security Settings in Excel
  1. Start Microsoft Excel
  2. Click on the menu Tools->Macro->Security...
  3. Set the security to Medium
The above steps only need to be carried out once in Excel



          

          

Import the VBA macros / formulas into Excel
  1. Launch Microsoft Excel
  2. Click on the menu Tools->Macro->Visual Basic Editor.




  3. Click on the menu File->Import File...




  4. Select the Encoder.bas file that is bundled with ConnectCode. This file is located in the Resource sub directory where ConnectCode is installed




  5. Click on Save followed by Close in the Visual Basic Editor


Creating a barcode in Excel
  1. Launch Microsoft Excel
  2. Create a new Excel Spreadsheet.
  3. Key in the data "1234" in the cell A1 as shown below. Leave the next column for the barcode.





  4. Enter the macro function in cell B1. For example, to encode a Code 39 barcode, set this cell to "=Encode_Code39(A1)".
  5. Hit the Enter key to see the encoded barcode string "*1234A*"
  6. Change the font in the cell containing the encoded barcode string (cell B1) to CCode39_S3. You can also choose a different font size to adjust the height.
  7. You can enter more data in the first column. After which you can encode them as barcode by copying and pasting the encoding function in the second column.






To encode other type of barcodes like Code 128 or UPC/EAN barcode or I2of5, simply use the appropriate functions/macros/formulas listed in the section List of Barcode Formulas