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:

1 Like

In case anyone is interested in this :slight_smile:

Hi ,
The below package is having an activity called “Save As Work”. it will help you to save the workbook in a different format.