in reply to circular reference in excel

You have probably generated a circular reference.

The reason? How should we know without knowing your script nor your data??

So prepare yourself for a serious debugging-session. The following hints may be helpful:

Good luck and happy debugging

Rata

PS.: don't forget to prepare a sufficient amount of coffee to support your efforts ;-)