Answers for "excel vba make a short integer from two bytes"

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 "excel vba make a short integer from two bytes"

Code answers related to "VBA"

Browse Popular Code Answers by Language