my code looks for currently existing worksheets.
for example....
Sheets("Name").Delete
Sheets("Address").Delete
Sheets("Telephone #").Delete
if it does not detect these sheets the code errors out.
if it does it proceeds and completes the code as written. If I want to run the code I always have to comment out and uncomment that specific block of code.
should i use a case statement? or an if statement so that if it finds them it delete else it jumps out and continues?
for example....
Sheets("Name").Delete
Sheets("Address").Delete
Sheets("Telephone #").Delete
if it does not detect these sheets the code errors out.
if it does it proceeds and completes the code as written. If I want to run the code I always have to comment out and uncomment that specific block of code.
should i use a case statement? or an if statement so that if it finds them it delete else it jumps out and continues?