I tried to run VBS via Invoke code command.
Here is example :
Dim excelApp, wB, wS
Set excelApp = CreateObject(“Excel.Application”)
excelApp.Visible = True
Set wB = excelApp.Workbooks.Open(“filePath/fileName.xls”)
Set wS = wB.Sheets(“sheetName”)
However, Uipath pops up error msgs.
Main errors were…
- Variable has to be declared with As statement due to option strict
- Set statement is not supported in present step.
Is someone who can solve the problem?
or any other ways to run VBSCript?
or Could you revise the code to work in Uipath?