Hi guys
I have written the code in access that will transfer values into excelsheet from access form and prints off that sheet. Now everything works fine except one thing which my manager now asked me to do.that is I have to print barcode of the unique number(i) on the sheet as well.
Can anyone please help me to figure it out please.
Thanks
Aman
I have written the code in access that will transfer values into excelsheet from access form and prints off that sheet. Now everything works fine except one thing which my manager now asked me to do.that is I have to print barcode of the unique number(i) on the sheet as well.
Code:
Dim xlApp As Excel.Application
Dim xlWB As Excel.Workbook
Set xlApp = New Excel.Application
With xlApp
Set xlWB = .Workbooks.Open("J:\WilliamsLea-AIMM\s1.xls")
End With
xlWB.Sheets("sheet1").Cells(2, 6).Value = i
[COLOR=darkred] xlWB.Sheets("sheet1").Cells(2, 9).Value = barcode(i)
[/COLOR] xlWB.Sheets("sheet1").Cells(7, 5).Value = Format(DateSerial(Combo6, Combo4, Combo2), "mm/dd/yyyy")
xlWB.Sheets("sheet1").Cells(9, 5).Value = Format(DateSerial(Combo12, Combo10, Combo8), "mm/dd/yyyy")
Can anyone please help me to figure it out please.
Thanks
Aman