David
I think you are right
As the formula is multiplying 2 ints
VB assumes the result will be an
int.
Fixes include:
Cells(x, 1).Value = x * CLng(30000)
Cells(x, 1).Value = x * (38000 - 8000)
Cells(x, 1).Value = clng(x) * 30000
etc
Basically it looks like you need to warn
VB that this will overflow, or
type x as a long.
cheers
Simon
--
Simon Murphy
------------------------------------------------------------------------
Simon Murphy's Profile:
http://www.excelforum.com/member.php...o&userid=26538
View this thread:
http://www.excelforum.com/showthread...hreadid=398008