Vba Make A Short Integer From Two Bytes

[Solved] Vba Make A Short Integer From Two Bytes | Vb - Code Explorer | yomemimo.com
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

Answers related to vba make a short integer from two bytes

Code Explorer Popular Question For Vb