This is a partial screenshot, but what I m trying to do is I am comparing two excel files and moving the new data into the master data (this activity not shown in the picture).
Because this is a for loop, I will need to clear my x_cel_new datatable and excel sheet with that datatable in order to recieve a new data after an hour ( all the activity is in a while loop that runs every hour).
So at the end of the while loop I am trying to reset all the data inside my excel sheet.
Then I will need to create a new sheet with exact same name “Sheet 2” and “Sheet 3”.
And the order of the sheet ( so old_sheet2 = new_sheet2) should be the same.
@seongchan_cho How would this happen ? I do not think it would be affected in that way unless you have an macro or vba code that does that operation by default when you perform deletion operation.
@seongchan_cho Check this sample Workflow : Delete Excel Sheet.zip (9.5 KB)
In the Sample Excel file, there are 3 Sheets, After Execution only One Sheet Will be preserved and the other two sheets will be deleted.
@seongchan_cho Recreating the Sheets would be just using a Write Range with a Sheetname that you need and new System.Data.Datatable as the Datatable value
Invoke VBA: Could not load file or assembly ‘Microsoft.Vbe.Interop, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ or one of its dependencies.