Oh yeah, I'm not running this from each individual workbook that I'm modifying. It's in my personal.xls. My concern is that if I index 20 workbooks at the beginning of the loop and start counting from one closing workbooks as I go, my loop willeventually go out of range.
For instance, during the first loop through, the macro will open the workbook at index number 1, and modify it. Then, it will close that workbook and increment the loop index number. This means that there are now 19 available open workbooks that are indexed and the loop counter is at 2. The next loop, it opens and modifies index #2, deletes that file bringing the number of open workbooks to 18, and increments the counter to 3.
At about the halfway point, it will be trying to open index number 11, but it will have closed 10 workbooks, so there is no index number 11 available, and the subscript goes out of range and everything comes to screeching halt.
I'm thinking of just running two loops. The first does the modification on all of the files, and the second closes all of the files. I just wonder if there's a more efficient way to do it.