My sheet names in excel are 2021-SMC , 2022-SSC , SMC - 2020 and earlier and SSC - 2021 and earlier
so year is the dynamic one here , so to read the sheet using get workbook sheet activities
I used regex :
system.text.regularexpressions.regex.ismatch(sheet,“\d - SMC”) or system.text.regularexpressions.regex.ismatch(sheet,“\d - SSC”) or system.text.regularexpressions.regex.ismatch(sheet,“SMC - \d{4} and earlier”) or system.text.regularexpressions.regex.ismatch(sheet,“SSC- \d{4} and earlier”)
But it is also matching sheet names like this 2022 - SMC_1 or 2021 - SSC_copy etc