concatenate keeping font

kcmuppet

Active Member
Joined
Nov 2, 2005
Messages
437
Office Version
  1. 365
Platform
  1. Windows
Hi I've got a table with around 600 bar codes in column [Barcode] formatted using "Code 128" font corresponding to a part number in column [Part Number].

I'd like to be able to print them all with the part number under the barcode and so need to find a way to concatenate with a line return / char(10), while keeping the font, in a new column in the table.

Could this be done using a user defined function =keepformat([@[Barcode]]) & CHAR(10) & keepformat([@[Part Number]])?

Any help greatly appreciated.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
A udf might be possible, although I think it would more likely be a procedure to set them directly to the cell (no in cell formula) but having the part number in the cell underneath the barcode would probably be more practical.
 
Upvote 0
Hang on, when I read your question I think I may have incorrectly assumed that you were printing a selection of barcodes from a different part of the sheet. Am I right in what I now think, that you want them in another column of the same table?
 
Upvote 0
You can't do it with a formula (UDF has the same limitation). You could just use a macro.
 
Upvote 0
Well I didn't manage to figure out how to do this in excel so used this font instead, Fonts

...which achieves what I need by including the ASCII number under the bar code
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,698
Members
448,979
Latest member
DET4492

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top