What to know:
-Excel 2010
-Windows 7
-Sheet is not protected
-Restarting the program seems to fix it, until it eventually happens again.
-Workbook attached. Button labeled: Click Here to Add Resource at row 50
I run a macro that finds a 3 word string on a sheet, copies its row and the one below it, then inserts the copied cells over itself.
Most of the time it works. But when it doesn't, I get the infamous:
Run-Time Error: 1004
Application-defined or object-defined error
The obvious first assumption is that my .Find did not find what it was looking for. However, knowing that string is there (and this macro runs successfully most of the time), I'm not sure why I get this error.
However, the real problem is after I END the macro. I can no longer see an outline around the cells I select, nor will the contents of the cell appear in the formula bar at the top. I can double click in a cell, and I can see my cursor and edit the contents, but I cannot see the selected cell.
Two noticeable things:
-The mouse is indicated by a hollow plus sign (same one you see when you hover over a highlighted area)
-The mouse still turns into a hand when hovering over buttons.
Here's the code:
I do have error handling, but I didn't include it to save space. When it works, it works great. When it errors, it never works again, and the sheet acts as mentioned previously.
Any clues? What obvious thing am I missing...
Bookmarks