Hi guys,
I can delete the entire content of the worksheet with the below code, however I have formulas in the last three columns. Is there a way I could keep the formulas but clear all the other cells of the table?
Many thanks,
I can delete the entire content of the worksheet with the below code, however I have formulas in the last three columns. Is there a way I could keep the formulas but clear all the other cells of the table?
Code:
Dim StrtSht As Worksheet
Dim DestWbk As Workbook
Set StrtSht = ActiveSheet
Set DestWbk = ActiveWorkbook
Worksheets("Currency").ListObjects("GCMR_Data_tbl").AutoFilter.ShowAllData
Worksheets("Currency").ListObjects("GCMR_Data_tbl").DataBodyRange.ClearContents
Many thanks,