Question

I am preparing an application for a pharmacy using excel, I need some kind of method by which I can generate barcodes which can be readable by barcode scanner

following is a example which convert a number to barcode of Code128 symbology. conversion of number (10019) to barcode

Was it helpful?

Solution

Here is a solid tutorial about creating barcodes in Excel http://www.wikihow.com/Create-a-Barcode

I have never used it personally, but if you look at step 4 it walks you through the process of installing a .bas file into the Excel VBA editor, they call it "=Code128()"which allows you to use a custom User Defined Function that will generate the bar code. This may be what you are looking for.

OTHER TIPS

This may be way too simple, however here's an idea:

Using the pipe and space characters combined with the font 'Hattenschweilier' blocks can be generated from binary strings using the following method (note cells on the left contain the output of cells on the right):

barcode from value

I don't have any experience working with barcodes, hence the control characters at each end (101) to locate the start and finish. These would need to be removed to recover the original value.

Regards,

James

It depends what type of bar code you need to generate but the easiest way is to purchase or otherwise acquire a bar code font (for the particular encoding you need). Then it is as simple as filling the cell with the data and formatting the cell with the correct font.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top