Answers for "vba make a short integer from two byte values"

VBA
8

excel vba make a short integer from two bytes

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
Posted by: Guest on May-23-2020

Code answers related to "vba make a short integer from two byte values"

Code answers related to "VBA"

Browse Popular Code Answers by Language