your post shows sec as capitals "SEC"
try converting to lower case "sec" in your macro
If you have option explict active this could be your problem.
"jocke" wrote:
its the " sec" variable thats making all the trouble.
--
jocke
------------------------------------------------------------------------
jocke's Profile: http://www.excelforum.com/member.php...nfo&userid=766
View this thread: http://www.excelforum.com/showthread...hreadid=473737