Invoke SaveAs method of Workbook object


Hello guys, could you please show me an example how to invoke SaveAs method or Workbook.
I tried to assign .CurrentWorkbook of UiPath.Excel.WorkbookApplication to variable of type Microsoft.Office.Interop.Excel.Workbook but i am getting this error (A Value of type ‘System.__ComObject’ cannot be set to the location with name ‘To’ because it is a location of type ‘Microsoft.Office.Interop.Excel.Workbook’) i was not able to invoke the method neither without assigning the workbook first to another variable (using directly wbApp.CurrentWorkbook as TargetObject)
Thank you :wink:

How to use workbook method in uipath

In case anyone is interested in this :slight_smile: