CountIF = function not defined ???
I Already do that... I was trying to find a neater way.
John
Gary Keramidas wrote:
not exactly sure what you're trying to accomplish, but:
Option Base 1
Sub test()
Dim arr() As String
Dim i As Long, n As Long
For i = 1 To 18
If i Mod 2 = 1 Then
n = n + 1
ReDim Preserve arr(1 To n)
arr(n) = Cells(1, i).Value
End If
Next
End Sub
|