Clear Cells Range data in Excel Worksheet using VBA – An Example And ClearContents will clear only the data, will not clear any formats. Clear will Clear the data and Formats of the given Range or Cells. We can clear Cells or a Range using Clear Method OR ClearContents Method of a Range or Cell. In this case we need to Clear data Excel from a Range in Worksheet using VBA before entering the data for each employee Clear Cells in Excel of a range or Worksheet using VBA- Solution(s): We may want to do this for all the employees of an organization.
For examples we may have some template to enter data and calculate the tax. Most of the times we clear the data from a cells or a range and re-enter to do some calculations.