Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
MD MD is offline
external usenet poster
 
Posts: 10
Default presence of SOMETHING in a range of cells

Good morning,

How can I put in a simple logic test if a range of cells has anything in
them (numbers or text). Say range("a1:a5") the cell A1 has something in it
then do this... if range(a1:a5") is empty then do that instead...

regards,

Michel


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default presence of SOMETHING in a range of cells


If application.counta(range("A1:A5")) 0 Then
'...

--

HTH

RP
(remove nothere from the email address if mailing direct)


"MD" wrote in message
...
Good morning,

How can I put in a simple logic test if a range of cells has anything in
them (numbers or text). Say range("a1:a5") the cell A1 has something in

it
then do this... if range(a1:a5") is empty then do that instead...

regards,

Michel




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
How can I test a range of cells for the presence of a border? PFB Excel Worksheet Functions 7 November 10th 08 05:19 AM
please help me mark their presence. hirendra7158 Excel Worksheet Functions 3 March 13th 06 10:46 PM
count their presence hirendra7158 Excel Worksheet Functions 1 March 13th 06 08:41 PM
Testing for the presence of an AddIn? Maury Markowitz Excel Programming 3 April 1st 05 06:23 PM
Need to test for file presence Grant Excel Programming 3 October 26th 04 08:57 PM


All times are GMT +1. The time now is 11:46 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"