This page collects the method and properties to clean up the working worksheet. You need to get the working worksheet to be initialized by removing the previous work, all or a part. If you want to remove all the entries, it is simpler to delete the working worksheet and generate a new worksheet. You can use some of the methods and properties to clean up partially.
Activesheet.Cells.Clear
Activesheet.Cells.Borders.LineStyle = xlNone
Activesheet.Cells.Interior.Color = RGB(255, 255, 255)
Activesheet.Cells.Font.Bold = False
Activesheet.Cells.Font.Color = RGB(0, 0, 0)
Activesheet.Cells.MergeCells = False
Activesheet.Cells.WrapText = False
Activesheet.Rows.Hidden = False Activesheet.Columns.Hidden = False
Activesheet.Cells.Validation.Delete
Activesheet.Cells.ClearComments
Activesheet.Hyperlinks.Delete
Activesheet.Shapes.SelectAll: Selection.Delete
Activesheet.Columns.ColumnWidth = 8.43 Activesheet.Rows.RowHeight = 15
Sub ClearForm_MMT(wshtName) Set ws = ActiveWorkbook.Worksheets(wshtName) With ws .Cells.Clear .Cells.Borders.LineStyle = xlNone .Cells.Interior.Color = RGB(255, 255, 255) .Cells.Font.Bold = False .Cells.Font.Color = RGB(0, 0, 0) .Cells.MergeCells = False .Cells.WrapText = False .Rows.Hidden = False .Columns.Hidden = False .Cells.Validation.Delete .Cells.ClearComments .Hyperlinks.Delete .Shapes.SelectAll: Selection.Delete .Columns.ColumnWidth = 8.43 .Rows.RowHeight = 15 End With End SubDated on: 29-November-2019