I have a table in Excel. It is 2 columns right now with about 50 rows. I want to clear the contents in VBA (I have a macro set up that runs smoothly and populates the table). I want it to be one ROW instead of 2 columns and 50 rows. What code lines do I need for this - I am new to VBA.
Thank you :)
I tried
Dim sTableName As String
Dim sSheetName As String
sSheetName = "VBAMacro"
sTableName = "ProductSale_Table"
Sheets(sSheetName).ListObjects(sTableName).Delete
but this simply removes content. I need to figure out how to clear it AND make it one row.