Did you try using the CLng function instead of CInt? I wouldn't imagine it would make much difference, but you never know.