Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default check a range of cells to see if they are empty

I am looking for code that will check a range of cells to see if they
contain any data. If they do, then I know the sheet has been used before
and it is not the first time it is being used.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default check a range of cells to see if they are empty

This function returns true if range provided as argument is truly empty
(no spaces, formulas, etc).


Function range_empty(rng As Range) As Boolean
Dim cell As Range
range_empty = True
For Each cell In rng
If cell.Formula < "" Then
range_empty = False
Exit For
End If
Next
End Function

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
Check for empty range in vba Phil Excel Discussion (Misc queries) 1 April 28th 06 09:57 PM
Checking for empty cells in a range Chris Strug Excel Programming 8 June 21st 05 12:07 AM
Evaluating a Range of Empty Cells with VBA John Mansfield Excel Programming 2 March 24th 05 08:45 AM
sum next two non-empty cells in a range Spencer Hutton Excel Worksheet Functions 1 January 9th 05 11:29 PM
Check for empty cells in Print Area? Ed Excel Programming 6 November 30th 04 06:15 PM


All times are GMT +1. The time now is 06:17 AM.

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"