Hello everyone, I am looking to convert a VBA code that I wrote into javascript and integrate it into Google Sheets. Does anyone have any suggestions on how I can accomplish this task? The VBA code in question is as follows:
Sub Influencers_automacao()
Sheets(1).Activate
Range("A1").Select
Selection.End(xlDown).Select
k = Selection.Row
For t = 2 To Sheets.Count
j = 2
For i = 2 To k
If Sheets(1).Cells(i, 1) = Sheets(t).Name Then
Sheets(t).Cells(j, 1) = Sheets(1).Cells(i, 2)
Sheets(t).Cells(j, 2) = Sheets(1).Cells(i, 3)
j = j + 1
End If
Next
Next
End Sub