reset a range of cells to zero

  • Thread starter Thread starter Jen
  • Start date Start date
J

Jen

I want a macro in Excel to reset a range of cells to zero, can anyone help me
please
 
Here are 2 ways depending on if you want to reset the active sheet or a
specific sheet...

Public Sub ResetZero()
ActiveSheet.Range("A1:A10").Value = 0
Sheets("Sheet3").Range("A1:A10").Value = 0
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top