How clear the entire data in a excel sheet

Hi @mohamedalthaf

How above this VBA code?

Sub ClearSheet()
Sheets("Sheet1").Cells.Clear
End Sub

Check out this blog

How to clear all the contents in an excel sheet UiPath - RPA Learners(%22Sheet1,way%20of%20achieving%20this%20task.

Regards
Gokul

1 Like