Hi all,
I am trying to write a procedure that will insert the address of a cell within a range into an array if it meets a requirement. What I have so far is:
Where Find1.Value is a value within a range and R1 is the counter for the array Results1(). However, this keeps displaying a subscript out of range error. I think this is a very simple error but I am relatively new to VBA so much help would be appreciated!
Thanks!
I am trying to write a procedure that will insert the address of a cell within a range into an array if it meets a requirement. What I have so far is:
Code:
For R1 = 1 To Max
If (Find1.Value < TextBox1) And (Find1.Value > "0") Then
Results1(R1) = Find1.Address
R1 = R1 + 1
End If
Next R1
Where Find1.Value is a value within a range and R1 is the counter for the array Results1(). However, this keeps displaying a subscript out of range error. I think this is a very simple error but I am relatively new to VBA so much help would be appreciated!
Thanks!