By: Shamima Sultana

In reply to Ryan.

Hello Ryan,

You are most welcome and glad to hear the VBA code worked for most of your SKUs!

For the two barcodes you’re having trouble with — especially those containing double zeroes — it’s likely due to how the Code 128 encoding handles certain characters or control codes.

The strings you shared (?q Sq,>o? and ?u B[hX{?) are the encoded representations, but barcode scanners sometimes have issues if the font isn’t correctly applied or if the encoding doesn’t match the expected format (like Code 128 Auto vs. Code 128 Subset B).

Here are a few quick tips that might help:
1. Make sure the barcode font (e.g., “Code 128”) is applied to the encoded text only, not the raw number.
2. Try adding Start and Stop characters (usually Start B and Stop for Code 128), but the VBA might already do this.
3. Ensure your scanner is configured to read Code 128 barcodes (some scanners let you toggle symbologies).
4. Try increasing the font size or printing the barcode in higher resolution—blurry or small barcodes can fail to scan.

Let me know if you’d like help tweaking the VBA code or testing these two SKUs more closely! Happy to help further.

Regards
ExcelDemy