Answers for "vba convert 2 bytes to an integer"

VBA
8

vba convert 2 bytes to an integer

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 convert 2 bytes to an integer"

Code answers related to "VBA"

Browse Popular Code Answers by Language