Programmatically determining if a sheet is empty

  • Thread starter Thread starter cullenmorris
  • Start date Start date
C

cullenmorris

Is there a way I can programmatically determine if a worksheet is
completely empty - that is, there are no cells containing any data?

Thanks very much.
 
if Application.CountA(ActiveSheet.Cells) = 0 then msgbox ("Empty Worksheet")
 

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