When I create a graph after using range.copy and range.paste it leaves the paste range selected, and then when I create a graph a few lines later, it uses the selection as the f
You can simply use this code at the end. (Do not use False)
Application.CutCopyMode = True
You could set the Application.ScreenUpdating = False
and select a cell out of view and then set the .ScreenUpdating
to true. This would at least not show any selected cells in the current view.
Cells(1,1).Select
It will take you to cell A1, thereby canceling your existing selection.
In Excel 2007, a combination using select and CutCopyMode property, it is possible to reset all the selections. It worked for my use case.
Application.CutCopyMode = xlCopy
ActiveSheet.Range("A" & lngRow).Select
Regards Madhur
Application.CutCopyMode = False
Sub MyFunc()
Range("B6").Select
Selection.Locked = True
End Sub