I need help with writing a fully qualified macro code for the following code snippet-
Sub Test()
Dim ChObj As ChartObject
Dim Top As Double
Dim Left As Double
Application.ScreenUpdating = False
For Each ChObj In ActiveSheet.ChartObjects
Top = ChObj.Top
Left = ChObj.Left
ChObj.Cut
ActiveSheet.Pictures.Paste.Select
Selection.Top = Top
Selection.Left = Left
Next ChObj
Range("A1").Select
Application.ScreenUpdating = True
End Sub
Sub Test()
Dim ChObj As ChartObject
Dim Top As Double
Dim Left As Double
Application.ScreenUpdating = False
For Each ChObj In ActiveSheet.ChartObjects
Top = ChObj.Top
Left = ChObj.Left
ChObj.Cut
ActiveSheet.Pictures.Paste.Select
Selection.Top = Top
Selection.Left = Left
Next ChObj
Range("A1").Select
Application.ScreenUpdating = True
End Sub