Sounds like you need to break your code up into separate functions/subroutines.
Like strongm says, there's a 64k limit on the amount of code you can have in a method. I don't know if it's 64k of characters, or 64k of interpreted code, but in either case, if you're anywhere near the limit, you need to refactor your code now!
Chip H.
____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first