

March 27, 2020

Hi Guys,
I have been struggling to get data to render as a barcode so that the barcode changes every time the data changes or with an update button (least preferred option)
Cell A18 in the label is populated with data from the data sheet.
Thus =DATA!A2 which gives me 205-8572073-5532359. I have tried different macros to get a barcode but can't get them to work.
I tried a workaround with a font which did actually work but relies on the text to look like this *205-8572073-5532359* so as to produce the barcode, I couldn't automate the asterisks appearing.
I'd be forever grateful if someone could help or point me in the right direction. Thanks in advance.


October 5, 2010

Hi Andy,
This is not code I wrote so I do not know how it works. With regards to it changing as the data changes, it is doing this for me so not sure why it isn't doing it for you? The function output goes into cell G12 but there's an image sitting over that. Maybe the code is changing but you aren't noticing it because f the image over the cell?
Have you tried my barcode code ?
Regards
Phil


October 5, 2010

Hi Andy,
The cell with the Barcode function was set to Text format and the font was Bold. Having it Bold mean the bars weren't being read properly.
The attached file works for me to generate Code128 barcodes.
The DataMatrix function is also generating matrices but I don't have a reader to check that they are correct.
Regards
Phil

Answers Post


March 27, 2020

Hi Philip, apologies for my ignorance in not replying to thank you for your help, I had some unplanned time away from my computer and forgot to return to the thread. Thanks, it worked perfectly.
I have run into another issue though and wondered if you could point me in the right direction?
In my data sheet which generates the label on the label sheet I have this macro
Option Explicit
Sub Next_Label()
With Rows(9): .Copy [A2]: .Delete: End With
End Sub
Which copies the data in row 9 to row two and moves the data up one row so that row 9 is re-populated ready for me to click a "Next Label" button on the label sheet. However when I run the macro instead of the data matrix I get an error "Unable to get the Width property" but if I go to the data sheet and manually copy and paste the matrix is fine. Any idea what would cause that?


March 27, 2020

Hi Phil,
Have attached the sheet, I have changed the macro a bit but still no joy. I'm not sure why there is a small matrix in K4. I'm starting to wonder if the matrix is working via that. If you copy and paste row 9 the label is fine but clicking the button throws the error I mentioned.
Thanks
Andy
1 Guest(s)
