I try to delete a ListObject with a specific name, but get an error if the ListObject does not exists.
How can I check if the ListObject exists before I try to delete it? I've tried following
How can I check if the ListObject exists before I try to delete it? I've tried following
Code:
If .ListObjects(strDataListName).Exists Then
.ListObjects(strDataListName).Delete
End If