Incredibly i was able to fix this problem. I got clues from this thread: http://www.mrexcel.com/forum/newrepl...te=1&p=2457555
Turns out the problem was due to some sorting vba i was using. Not sure why but I fixed the problem by changing the sub routine code found in the "UtilityMod" module. I changed it from:
To:
I got the idea that maybe the code was passing a duplicate key from reading older posts at that link on page 3. Once I changed the code, ran the red button, and saved the workbook the error went away. Interestingly enough, I tried it without doing the if statement, only setting the sortKey variables and passing those into the sort method i was using originally, but that didn't work. For what ever reason it need the if statement.
Bookmarks