View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
BB Ivan BB Ivan is offline
external usenet poster
 
Posts: 17
Default Counting cells using EVALUATE

I'm trying to calculate and return a count based on a range and am having
trouble getting it right. I am counting retail store numbers that may be
typed in the range. I then use the count in other place in my macro.

Non-working code:
funcRange = "ActiveSheet.Cells(""DX1:IV1"")"
funcName = "=COUNTA"
funcNameRange = funcName & "(" & funcRange & ")"
mStoreCount = Evaluate(funcNameRange)