I am using Excel 2007 and I created a table (i.e., listobject) using the macro recorder as follows:
Questions:
1. How do I delete this table via VBA?
2. How would I check to see if this table already exists so it follows this logic:
If "table does not exists" then
'create it (using the line of code above)
End If
Code:
ActiveSheet.ListObjects.Add(xlSrcRange, Range("$A$3:$J$50"), , xlYes).Name = "MyData"
Questions:
1. How do I delete this table via VBA?
2. How would I check to see if this table already exists so it follows this logic:
If "table does not exists" then
'create it (using the line of code above)
End If