Also, make sure that all of the library functions are in your script, and not just the ones you think you need. For example, the xlRangeSearch function that you are referencing also utilizes the xlColRow function etc...