Workbook not downloaded...
The error occurs because changing a cell (either interactively or by code) will trigger a Worksheet_Change event. If you are already running code in a Change event then that basically causes a 'Circular Reference' (to use a formula analogy) in code.
The code changes a cell which raises a Change event which changes a cell which raises a Change event which changes a cell which raise... and so on. Eventually (in less than a second) Excel dies.
To avoid this, you NEED to turn off event handling so the change to the cell does not raise another event. This is done simply by using
but you MUST make absolutely sure that any errors are trapped correctly so you can turn Event handling on again, otherwise Excel will be totally unresponsive.
Bookmarks