If it correct, please check Marco in your excel files.
as far as i know, maybe some Marco in your excel file has a problem,
Please try to test it by deleting Marco that you don’t want to execute
and using the Execute Marco activities to run it again.
Thank you for the reply. The macro names are correct. The macro also work fine when I run them myself on Excel.
The issue is Uipath just can’t run the Macro. I noted that “Execute Macro” works fine with simple macro but not with long, complex macros.
Is there a solution to this? Or is there somethings that I need to avoid in the Macro code?
Thank you.
Dim ColumnR As Long
ColumnR = Range(“A1”).End(xlDown).Row
For ColumnR = 2 To ColumnR
If Cells(ColumnR, “R”) <> “” Then
Cells(ColumnR, “R”).Clear
End If
If Cells(ColumnR, “AE”) <> “” Then
Cells(ColumnR, “AE”).Clear
End If
If VBA.Left(Cells(ColumnR, “K”), 1) <> 7 And VBA.Left(Cells(ColumnR, “K”), 1) <> 8 Then
Cells(ColumnR, “Y”).Clear
End If
Next ColumnR
Dim AN As String
AN = ActiveWorkbook.Name
lastrow = ActiveCell.Row
Dim b As Integer
For b = lastrow To 2 Step -1
If Cells(b - 1, “J”) = “31” Or Cells(b - 1, “J”) = “39” Then
Cells(b - 1, “AM”) = Left(AN, 12)
End If