Hello there,
Im trying to get text from PCOMM but only getting the numbers.
Have try so many things, and cant find a solution. Hope you can help me out.
The text looks like this in PCOMM GB0006
And Artikel1 should get GB and Artikel2 should get 0006.
Then when i but them together in cell B2 its should be GB0006.
But what i get is only 6.
The code looks like this:
Dim Artikel1 As Long
Dim Artikel2 As String
On Error Resume Next
autECLOIA.waitforinputready
Artikel1 = CDbl(autECLPSObj.GetText(7, 26, 2))
autECLOIA.waitforinputready
Artikel2 = CDbl(autECLPSObj.GetText(7, 33, 4))
autECLOIA.waitforinputready
Artikel = Artikel1 & Artikel2
Range(B2).Value = Artikel
Thank you for helping me out!
Best Regards, Vallsta
Im trying to get text from PCOMM but only getting the numbers.
Have try so many things, and cant find a solution. Hope you can help me out.
The text looks like this in PCOMM GB0006
And Artikel1 should get GB and Artikel2 should get 0006.
Then when i but them together in cell B2 its should be GB0006.
But what i get is only 6.
The code looks like this:
Dim Artikel1 As Long
Dim Artikel2 As String
On Error Resume Next
autECLOIA.waitforinputready
Artikel1 = CDbl(autECLPSObj.GetText(7, 26, 2))
autECLOIA.waitforinputready
Artikel2 = CDbl(autECLPSObj.GetText(7, 33, 4))
autECLOIA.waitforinputready
Artikel = Artikel1 & Artikel2
Range(B2).Value = Artikel
Thank you for helping me out!
Best Regards, Vallsta