First, see my note in your post.
Second, Worksheet_Change will be executed automatically any time any cell in the worksheet changes. That means a new value is entered into a cell, or a new formula is put into a cell. (It will not be executed if an existing formula results in a different value.)
Third, there are numerous problems with this one line of code.
Rather than try to list and fix each one, it would be better to start over and explain what you are trying to do in detail. Your description uses the word "loop" but there is no loop in this code.
Bookmarks