Thanks Bernie. Unfortunately, when I replaced my formula with yours, I still end up with the same result: 02/O02/O2022.
Any thoughts?
Here is the full code:
CurRow = Lastrow
If Application.WorksheetFunction.CountA(Range("A" & CurRow & ":F" & CurRow)) = 6 Then
BarRow = Lastrow + 1
'Adjust row height and alignment
With Range("A" & BarRow & ":F" & BarRow).Select
Selection.RowHeight = 24
Selection.VerticalAlignment = xlCenter
Selection.NumberFormat = "General"
End With
'Adjust Font
With Range("A" & BarRow & ":F" & BarRow).Font
.Name = "Free 3 of 9 Extended"
.Size = 18
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
.TintAndShade = 0
.ThemeFont = xlThemeFontNone
End With
'Barcode formulas
Range("A" & BarRow).FormulaR1C1 = "=UPPER(""*"" & R[-1]C & ""*"")"
Range("B" & BarRow).FormulaR1C1 = "=UPPER(""*"" & R[-1]C & ""*"")"
Range("C" & BarRow).FormulaR1C1 = "=UPPER(""*"" & R[-1]C & ""*"")"
Range("D" & BarRow).FormulaR1C1 = "=UPPER(""*"" & R[-1]C & ""*"")"
Range("E" & BarRow).FormulaR1C1 = "=UPPER(""*"" & R[-1]C & ""*"")"
Range("F" & BarRow).FormulaR1C1 = "=UPPER(""*"" & TEXT(R[-1]C,""MM/DD/YYYY"") & ""*"")"
It checks that the row above is complete, and then formats and enters barcodes of the data in the completed row above. Maybe there is something wrong in this section.
Thanks!