Excel Vba Right Word From Long Integer

[Solved] Excel Vba Right Word From Long Integer | Vb - Code Explorer | yomemimo.com
Question : excel vba left word from Long Integer

Answered by : daniel-ferry

'If n is a 4-byte Long Integer, the Low (Left) Word is:
If n And &H8000& Then	LoWord = n Or &HFFFF0000
Else LoWord = n And &HFFFF&
End If
'If n is a 4-byte Long Integer, the High (Right) Word is:
HiWord = (n And &HFFFF0000) \ &H10000

Source : http://academy.excelhero.com/ | Last Update : Sat, 30 May 20

Answers related to excel vba right word from long integer

Code Explorer Popular Question For Vb