2010noACAPS
Technical User
I am very new to VB and am trying to right a macro for Excel that will take scrapes from a Terminal program and put the information in a manifest. My manifest is set up to have a 2 row header, "A" is numbered 1-34, there are three columns, "B" is formatted to be 10 digits long so anything under 10 digits has leading zeros. Right now it kind of works, but the problem I'm having is since I told it
It's printing at the bottom of the manifest and putting Customer name one row down from CustomerNumber instead of side-by-side. My CustomerNumber is also printing "_" for numbers that are not 10 digits long.
Can anyone help?
Code:
CustomNumber = gHostScreen.GetString(7, 33, 10)
Cells(Cells.SpecialCells(xlCellTypeLastCell).Row + 1, 3).Value = CustomNumber
CustomerName = gHostScreen.GetString(3, 2, 18)
LastName = Left$(CustomerName, InStr(1, CustomerName, ",", 1) - 1)
Cells(Cells.SpecialCells(xlCellTypeLastCell).Row + 1, 4).Value = LastName
Can anyone help?