Thread: Get cell value
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jason[_43_] Jason[_43_] is offline
external usenet poster
 
Posts: 4
Default Get cell value

Hello

I'm trying to get the cell value, if the cell has a value over a certain
range, but when I run this, I keep getting a run time error. Any ideas?
Can I not use the range funtion like this?

Sub CellValue()
Dim x
For Each x In Range("c1:c100")
If Not IsEmpty(x) Then
Debug.Print "The value is " & Range(x).Text
End If
Next x
End Sub