Originally Posted by
GMOODY
I think that the problem is happening in my "INSTR" line close to the bottom of the macro.
What problem? Not sure what to try to fix for you....
At any rate here is a cleaned up version of your code, and there is clearly one problem at the line you mention, see below.
When you record a macro in Excel, the resulting code tends to be cluttered and inefficient. That's mostly because Excel can't guess at what you are going to do next. In particular, it is not necessary to Select a cell then refer to the Selection to operate on it; you can just refer to the cell straight away. This version declutters the Excel macro.
Bookmarks