Step 1: Use Excel File activity and give excel path having data
Step 2: Inside Do Add activity “Get Table Range Workbook” with excel name and sheet1
Step 3: Add Message Box
When I run and executes step 1 the excel opens up and goes to step 2 and I get a red box with output message
Get Table Range Workbook: The process cannot access the file ‘C:\Excel \Sample.xlsx’ because it is being used by another process.
Note : All excel instance are closed before running the code.
Hello @sobin_paul Actually the Use excel file open the excels and the if you’re using workbook activity then it’ll throw the error because it can’t access the excel which is open so use Excel activity like read range activity to read the table or the datat which you want to read in datatable variable as dtData and then Message Box with "Rows count: " + dtData.Rows.Count.ToString it’ll show the row count.
Also may i know which verfsion of excel package you’re using?