Hi! I have a matrix. The matrix is populated with info for a long list of firms. For evey firm there is an array filled with info about the firms rating. The ratings are placed in priority order ie the the lower the index number the higher the priority. For every firm I want to check the rating. Starting with the highest prio and then moving down I want to find only one rating. Thus first i want to check index = 0 if that place does not contain any rating then i want to check index = 1 etc. However I seem to have lost myself in my loop....
For i = 1 To UBound(varBBAnswerMatrix, 1)
For j = 1 To UBound(varBBAnswerMatrix, 2)
If IsRatingOK(varBBAnswerMatrix(i, j)) Then
'here I have found a rating. Move on to the next firm
Exit For
Else
j = j + 1
Next
please help me with this loop! thanks alot!
For i = 1 To UBound(varBBAnswerMatrix, 1)
For j = 1 To UBound(varBBAnswerMatrix, 2)
If IsRatingOK(varBBAnswerMatrix(i, j)) Then
'here I have found a rating. Move on to the next firm
Exit For
Else
j = j + 1
Next
please help me with this loop! thanks alot!