Unable to find Microsoft.Office.Interop.Excel package in manage pacakges

I am trying to use invoke code activity for some Excel operations but I am not able to find microsoft.office.interop.excel package.
Studio version using - 2022.10.7.

Kindly help asap. Thanks in advance.

Hi @Swetha_V

It will be available in the import panel please check.

Regards

@Swetha_V,

Check if Excel application is installed and UiPath.Excel.Activities package is installed.

Thanks,
Ashok :slight_smile:

Yes, i did checked and imported those.
But when I am t
Writing code to open it read the password protected Excel file, i am getting below error

Error BC30002 The Excel.apication is not defined and also Excel.workbook not defined.

Hi, yes installed al these.

@Swetha_V,

Ok. Can you share the code you are trying to Invoke?

To read or open password protected Excel file

Dim Excel app as New Excel.Application
Dim workbook As Excel.workbook = excelapp.workbooks.open(“path”, Password:=“password”)

my requirement is - I have to perform the sheet format in Excel or xlsm file like below

Note - in this we have to check if tab and semicolon checked or unchecked. If not we have to check, but at the end these two be checked.

Can anyone help here?

@Swetha_V,

I think issue is in declaration.

There should not be space between variable name.

Try removing the space and use like Excelapp

Thanks,
Ashok :slight_smile: