guys i made a macro in excel i want to copy the table when i run this macro the table area duplicating itself please help me, thanks
VBA Code:
Sub screenshot()
Dim w As Worksheet
Range("D1:F7").Select
Selection.Copy
Range("C4").Select
ActiveSheet.Pictures.Paste.Select 'when i remove this it wont recreate the table but now my clipboard is getting empty
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = ""
End Sub