LaVolpe,
That is the answer as I expected.
Although lngY was declared as Long but &HFFFF is not.