View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] tammywilliams1604@yahoo.co.uk is offline
external usenet poster
 
Posts: 11
Default conut rows within a range

hi,

i want to count the number of rows within a range with data in , the
range is set at 200 rows but there is a different no of rows with data
in within that range at any one time, iam using the following at the
moemt that just adds all cells within the range

Dim clearscnt As Range
Set clearscnt = Worksheets("clears").Range("a1:c200")
Worksheets("codes").Range("d2").Value = clearscnt.Count


i wish to try and avoid activating any of the cells in the range

tammy