I need to copy data from specific range to another excel sheet but the problem is we’re unable to specify sheet name.
So, can I copy data from previous sheet to last sheet?
Please refer to below image.
[Example]
SheetA
A2:A15 data needs to be copied to SheetB C2:C15
I have two sheets, so to retrive the sheet1 I used Excel Application scope and activity called Get Workbook Sheets, So this will output you all the sheet names in an array
After that using the Sheets(Sheets.count-2) I can get previous sheet, For getting the Last sheet you can use Sheets(Sheets.Count-1)