Hello,
I wants to clear data which is shown red color.
i tried with below code
Private Sub CommandButton1_Click()
Dim wb As Workbook
Dim ws As Worksheet
Set wb = ActiveWorkbook
Sheets("Sheet1").Rows("2:" & Rows.Count).ClearContents
End Sub
clear.JPG
i am not getting any idea please help me.
Bookmarks