thank's now it's working, but i don't get it.
if the variabel hour is declared integer, must the result of any
multiplying with "hour" be less than 32767 or else it will fail?
thanks a lot
/jocke
--
jocke
------------------------------------------------------------------------
jocke's Profile:
http://www.excelforum.com/member.php...nfo&userid=766
View this thread:
http://www.excelforum.com/showthread...hreadid=473737