drwashngtn
New Member
- Joined
- Jul 13, 2004
- Messages
- 1
Hello,
I'm having quite a diffecult time with creating this macro.
What I'm trying to do is loop through a column of cells to check if each one is text or a number and if it is text then conduct an operation. So far my attempts have failed and my Macro gets an error when it reaches the IsText function. this is my macro so far:
Sub LoopTry()
Range("E667").Select
n = 1
test = 0
For Each c In ActiveCell.CurrentRegion.Cells
If (IsText(c.Value) = True) Then test = 1
If (test = 0) Then Next
Else
n = n + 1
Next
.Range("E667") = n
End Sub
Any help that you could give me would be appreciated.
Thank You,
Seth-Elliot Drori
I'm having quite a diffecult time with creating this macro.
What I'm trying to do is loop through a column of cells to check if each one is text or a number and if it is text then conduct an operation. So far my attempts have failed and my Macro gets an error when it reaches the IsText function. this is my macro so far:
Sub LoopTry()
Range("E667").Select
n = 1
test = 0
For Each c In ActiveCell.CurrentRegion.Cells
If (IsText(c.Value) = True) Then test = 1
If (test = 0) Then Next
Else
n = n + 1
Next
.Range("E667") = n
End Sub
Any help that you could give me would be appreciated.
Thank You,
Seth-Elliot Drori