Hi All,
I am trying the below vb script to copy required columns data from a sheet to another existing sheet in the same workbook. I am executing this .vbs file using Run Command component, but
Sub foo1()
Dim src As Worksheet
Dim trg As Worksheet
Dim LastRow As Long
Set src=ThisWorkbook.Worksheets("Summary")
Set trg = ThisWorkbook.Worksheets("Sheet1")
src.Range("D:D").Copy Destination:=trg.Range("A1")
src.Range("E:E").Copy Destination:=trg.Range("B1")
src.Range("F:F").Copy Destination:=trg.Range("C1")
src.Range("G:G").Copy Destination:=trg.Range("D1")
End Sub
Getting error like below:

But the same script working in excel under developer menu. But not from Alteryx. Please help, thanks in advance