what am I missing that will cause the recursion you mention?
Code that 'selects' the entire row triggers the selection_change event,
which selects a row, which...
Are you seeing that on your version of Excel? I just tried it out on my
copies of XL2003 and XL2007 and see no evidence of a recursive failure
whether I select the row manually or via code; as, for example, with this
statement...
Range("C3").EntireRow.Select
In any event, I would assume my suggestion (for a different reason) to
include this statement...
If Target.Count > 1 Then Exit Sub
at the beginning of the subroutine should eliminate this concern; so I am
guessing the Error trapping code could be eliminated if this test is
performed.
We can, but I made a considered decision not to post exactly that macro,
as the writer may need to add additional code that is not wanted to be run
every time.
I'm not sure I see where this would be a problem (running
Application.EnableEvents=True can't hurt anything even if it were not set to
False beforehand and surely we want it to run after it is set to False
whether an error is triggered or not); however, I do recognize the benefits
of using a consistent code-construction style (Exit Sub followed by error
handling code) and so I, of course, will acknowledge that.
Rick