Function BitShift(StartValue, BitsToShift)
BitShift = StartValue * (2 ^ BitsToShift)
End Function
--
__________________________________
HTH
Bob
"TheWizEd" wrote in message
...
How do you perform a bitwise shift in VBA (Excel)?
I have seen an operator in some VB code like this.
x = y << 8 ' I believe this mean shift y 8 bits to the right
But this is not in VBA. Any suggestions?