Hi,
I have two subs wigh are:
Sub 1 - cycling through a list in my Location Master sheet, I add a sheet with the sheet name defined in my Location Master sheet.
This works fine adding worksheets if the worksheet does not exist. The issue I have is determining if the worksheet already exisits. If no, add worksheet. If yes, update worksheet.
Sub 2 - cycling through my list in my Location Master sheet, I delete a worksheet with the sheet name defined in my Location Master sheet.
This works fine deleteing worksheets if the worksheet exisits. The issue I have is determining before the delete is the sheet actually exists.
I guess what I' asking is for a routine that I can call to set a switch if he Worksheet exists. I would pass this routine the same name I need to check.
This one routine would satisfy my need in both of the subs above.
Thanks.
I have two subs wigh are:
Sub 1 - cycling through a list in my Location Master sheet, I add a sheet with the sheet name defined in my Location Master sheet.
This works fine adding worksheets if the worksheet does not exist. The issue I have is determining if the worksheet already exisits. If no, add worksheet. If yes, update worksheet.
Sub 2 - cycling through my list in my Location Master sheet, I delete a worksheet with the sheet name defined in my Location Master sheet.
This works fine deleteing worksheets if the worksheet exisits. The issue I have is determining before the delete is the sheet actually exists.
I guess what I' asking is for a routine that I can call to set a switch if he Worksheet exists. I would pass this routine the same name I need to check.
This one routine would satisfy my need in both of the subs above.
Thanks.