I have a written code to clear data on several worksheets. The data is only cleared on sheet "page1" being the first sheet.
It would be appreciated if you could amend the code so that the data is cleared on all the worksheets
Sub Clear_Data()
For shtName = 1 To Sheets.Count
With Sheets(shtName)
With Range("A:Z")
.ClearContents
End With
End With
Next
End Sub
It would be appreciated if you could amend the code so that the data is cleared on all the worksheets
Sub Clear_Data()
For shtName = 1 To Sheets.Count
With Sheets(shtName)
With Range("A:Z")
.ClearContents
End With
End With
Next
End Sub