Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Need to test for a blank worksheet.

Hi Everyone,

What can I use to test if a sheet is completely blank?

UsedRange.Rows.Count doesn't work because it yields an answer of "1"
even for a newly created sheet.

Any help would be appreciated.

Regards


Greg

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Need to test for a blank worksheet.

Never mind. I found it: Application.CountA(ActiveSheet.Cells)


<The things you can find in this newsgroup if you just look! :-)

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A logical test in the If function for blank, i.e., If blank? egii Excel Worksheet Functions 5 September 16th 09 11:46 AM
Range or test for blank? davegb Excel Programming 4 May 8th 06 05:59 PM
Macro code to test for blank row and insert blank row if false Mattie Excel Programming 2 March 29th 06 01:19 AM
Test for blank lines MarkN Excel Programming 2 February 1st 06 02:20 AM
Excel VBA Test For Blank Cell Tod Excel Programming 0 July 28th 04 09:34 PM


All times are GMT +1. The time now is 04:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"