[FONT="]I am trying to build this array that can be different for each set of data that is consantly growing. This means that I need to have a Ubound that is also growing. Unfortunately when trying to use the counter method to determine how big the Ubound should be everytime I kepp getting an error "Constant expression required". any thoughts?[/FONT]
Do While InStr(ActiveCell.Value, "Column") = 0
a = a + 1
ActivCell.Offset(0, 1).Select
Loop
[FONT="]
[/FONT]
Dim FC(0 To a) As Double
[FONT="] [/FONT]
For i = LBound(FC) To UBound(FC)
If InStr(ActiveCell.Value, "Column") = 0 Then
FC(i) = ActiveCell.Value
ActiveCell.Offset(0, 1).Select
Else
Exit For
End If
i = i + 1
Next i
Do While InStr(ActiveCell.Value, "Column") = 0
a = a + 1
ActivCell.Offset(0, 1).Select
Loop
[FONT="]
[/FONT]
Dim FC(0 To a) As Double
[FONT="] [/FONT]
For i = LBound(FC) To UBound(FC)
If InStr(ActiveCell.Value, "Column") = 0 Then
FC(i) = ActiveCell.Value
ActiveCell.Offset(0, 1).Select
Else
Exit For
End If
i = i + 1
Next i