cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to check if a sheet exist in the excel

manohar
Contributor

hi there, trying to find a solution on how to find a sheet exists in an excel file. Goal is if the sheet doesnt exist, then it will create the sheet in the excel else it should append to the existing sheet.

Any help is greatly appreciated.

Thanks
Manohar

1 REPLY 1

alchemiz
Contributor III

Hi Manohar,

Have you tried trapping it in the error view??? its basically doing a try catchโ€ฆ put a router if $error โ€œSheet with the name does not existโ€ then create the sheetโ€ฆ

image

If it didnโ€™t error then sheet is already n the excel

Thanks,
M