Excel - To test for a Blank Sheet

  • Thread starter Thread starter TKT-Tang
  • Start date Start date
T

TKT-Tang

Please show the VBA coding required in order to test for a blank
worksheet as well as a blank chart-sheet.
Regards.
 
If WorksheetFunction.CountA(Sheet1.Cells) = 0 Then MsgBox "Worksheet is
blank."

Don't know much about charts ... <g>
 
One needs to define blank. There can be shapes on the sheet and no cell
entries.
 
Good point, Tom ... never even thought of that!

Regards,

Vasant.
 
Mr. Vasant Nanavati and Mr. Tom Ogilvy,

Thank you for your illumination.
A blank worksheet (for my purpose) is primarily devoid of cell entries
; otherwise, there would be required to test for Shapes and Charts
Collections. By extension, there could be (resident already) VBA
Coding and UserForms as well.

How are the items as given detectable by VBA Coding ?

Regards.
 

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