Hello,
I'm getting type mismatch errors in a Macro, and am trying to resolve it by checking to see if the cell contains an integer, but can't figure out how to do that.
Current line is
If Selection.Cells(i) > 0 Then l = l + 1
I'd like ti to be more like
If (Selection.Cells(i) > 0 AND Selection.Cells(i).type=Integer) Then l = l + 1
but that clearly doesn't work. What's the right language for this?
Configuration: Windows XP Internet Explorer 6.0