Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Evaluating a range

I would appreciate some help on evaluating a range
(Columns A:K). The problem is that there are several
different variable types within this range. How can I
code the program to say if all cells are blank, do "X".

I could look at each cell in each column for each row but
that doesn't seem to be efficient.

Thanks for the help.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default Evaluating a range

Mike,

Try something like the following:

If Application.WorksheetFunction.CountA(Range("A:K")) = 0 Then
Debug.Print "All Blank"
Else
Debug.Print "Not all blank"
End If



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Mike" wrote in message
...
I would appreciate some help on evaluating a range
(Columns A:K). The problem is that there are several
different variable types within this range. How can I
code the program to say if all cells are blank, do "X".

I could look at each cell in each column for each row but
that doesn't seem to be efficient.

Thanks for the help.




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
Evaluating formula in VBA Walter Briscoe New Users to Excel 5 July 1st 09 10:33 AM
#Value! error when evaluating data in a cell range Simon Woods Excel Worksheet Functions 7 January 13th 09 10:38 PM
Evaluating division by zero Shams Excel Worksheet Functions 10 April 14th 08 10:24 PM
Function not evaluating DazzaData Excel Discussion (Misc queries) 2 February 20th 08 07:36 PM
Evaluating a range TwoDot Excel Discussion (Misc queries) 5 March 5th 07 08:59 PM


All times are GMT +1. The time now is 04:57 PM.

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

About Us

"It's about Microsoft Excel"