amateur1902
03-14-2008, 04:13 AM
Hello everyone,
I've got a question about a part of the code i use. When i run the code it takes 8 seconds to end en the part that is following takes 6 seconds of it.
I know that this part needs time to process but do you think that it can go any faster.
Dim arrayCorrel() As Variant
ReDim arrayCorrel(nr_comp)
For a = 0 To nr_comp
For B = 0 To nr_of_dates
arr_Dp(B) = vtResult(B, a, 1)
Next
arrayCorrel(a) = Application.Correl(arr_Id, arr_Dp)
u = a - 1
If Not IsNumeric(arrayCorrel(a)) Then
arrayCorrel(a) = arrayCorrel(u)
End If
ReDim arr_Dp(nr_of_dates) As Variant
Next
This is just a small part of the whole code. But when i would give the full it can get blurry. I hope this info is enough for you to help.
When you need more info or a bigger part of the code. Please ask
Thanks
I've got a question about a part of the code i use. When i run the code it takes 8 seconds to end en the part that is following takes 6 seconds of it.
I know that this part needs time to process but do you think that it can go any faster.
Dim arrayCorrel() As Variant
ReDim arrayCorrel(nr_comp)
For a = 0 To nr_comp
For B = 0 To nr_of_dates
arr_Dp(B) = vtResult(B, a, 1)
Next
arrayCorrel(a) = Application.Correl(arr_Id, arr_Dp)
u = a - 1
If Not IsNumeric(arrayCorrel(a)) Then
arrayCorrel(a) = arrayCorrel(u)
End If
ReDim arr_Dp(nr_of_dates) As Variant
Next
This is just a small part of the whole code. But when i would give the full it can get blurry. I hope this info is enough for you to help.
When you need more info or a bigger part of the code. Please ask
Thanks