Re: Unable to insert (rows) from Clipboard into needed rows below a variable selected
Where to put the Stop line? Well perhaps here:
[COLOR="#0000FF"]obj.settext str
obj.PutInClipboard
Selection.Delete Shift:=xlUp
[COLOR="#FF0000"]Stop[/COLOR]
Sheets.Add After:=Sheets(Sheets.count)[/COLOR]
When it errors on the stop line you can continue by pressing F5 on the keyboard. It just confirms that the macro has been entered when you think it has. Remove the stop line when it's done its job as it gets in the way.
I put your CopyToClipBoardAndDelete macro into a module of my Personal.xlsb as you have and assigned it a keyboard shortcut.
I did the same with this:
Sub qqqq()
Selection.Insert Shift:=xlDown
End Sub
and assigned it another keyboard shortcut.
I then selected non-contiguous rows, ran the first, chose a location by selecting a row elsewhere and called the second macro with the other keyboard shortcut and it pasted (inserted) the rows. It did this whether it was the same worksheet, a different worksheet or even a different workbook.