Hi Susan,
>I can't figure out which part of the program contains this error. Any ideas anyone? Thanks in advance.
You want to find where the error is? What sort of errorhandler do you have set up, any? These may work as a temporary fix to tell you where your errors are:
on error wait window program() + str(lineno())
Put it anywhere before you know where the error occurs. Keep in mind that this is a weak fix. Consider looking at
http://www.stonefield.com/techpap.html for more ideas on a professional error hanlder.