It's always the details that hang me up. :}
I have a macro that cuts and pastes rows to reorder them. It works unless the the User has started editing a cell and didn't hit return. Then the Cut does not succeed and then the macro fails on the Paste. Is there someway to force the completion of a manual cell edit at the beginning of the macro. Here's a snippet of my code.
For R\_Cnt1 = 7 To NumRows1
If HDWSh.Range("A" & R\_Cnt1) = "O" Then
If R\_Cnt1 <> L\_Cnt1 Then
HDWSh.Rows(R\_Cnt1).Cut
HDWSh.Rows(L\_Cnt1).Insert Shift:=xlShiftDown
End If
L\_Cnt1 = L\_Cnt1 + 1
End If
Next R_Cnt1
I tried adding a
Application.SendKeys "{Enter}", True
but that didn't do anything.
Thanks for your Help!