Hi,
I'm running a extremely simple procedure but it gave me the error and I have no idea what Excel wants. Here goes the code.
Sub testing()
Dim DmnIt As Variant
Set DmnIt = Range("a10:f10").Value
For i = 1 To UBound(DmnIt, 1)
MsgBox i
Next
End Sub
It's a one-row range trying to read in as an Array. Error found on the 3rd row: the Set statement.
BTW, the values in DmnIt is "a, b, c, d, e, f".
Thanks in advance.
John Z.
I'm running a extremely simple procedure but it gave me the error and I have no idea what Excel wants. Here goes the code.
Sub testing()
Dim DmnIt As Variant
Set DmnIt = Range("a10:f10").Value
For i = 1 To UBound(DmnIt, 1)
MsgBox i
Next
End Sub
It's a one-row range trying to read in as an Array. Error found on the 3rd row: the Set statement.
BTW, the values in DmnIt is "a, b, c, d, e, f".
Thanks in advance.
John Z.