Question : excel vba make a short integer from two bytes
Answered by : daniel-ferry
Public Function MakeInteger%(LoByte As Byte, HiByte As Byte) If HiByte And &H80 Then MakeInteger = ((HiByte * &H100&) Or LoByte) Or &HFFFF0000 Else MakeInteger = (HiByte * &H100) Or LoByte End If
End Function
Source : http://academy.excelhero.com/ | Last Update : Sat, 30 May 20