Worksheet existence
Posted by Fred Schmid on June 14, 2001 8:34 AM
How do you check for the existence of a worksheet in a workbook in a macro? I want to delete a certain worksheet if it exists. If I try to delete the worksheet and it doesn't exist I get a 'Subscript out of range' error. Also, similiar to this how do I check for an open workbook. If I try to copy something to a workbook that is not open I get an error. If I open the workbook and it is already open I get an error.
Thanks,