Public Function MyFunc(DistNum)
If anyone can help, the see the short code below, i think it's pretty self explanatory.
Dim c As Variant
Dim LoopCounter As Variant
Dim Range3 As Range
Dim prTest As Variant
Set Range3 = Worksheets("Master 2001-02".Range("i1:i500"
For Each c In Worksheets("Master 2001-02".Range("b1:b500"
If c.Value = DistNum Then
MsgBox "found it"
Now that you've found it - look over 5 columns to the right in the same row for the value "pr" If it's there then MyFunc value = whatever is 6 columns over in the same row. If it's not there, then continue to the next match
End If
Next c
End Function
Hope someone can help. Thanks. How much more water would there be in the ocean if it weren't for sponges?
If anyone can help, the see the short code below, i think it's pretty self explanatory.
Dim c As Variant
Dim LoopCounter As Variant
Dim Range3 As Range
Dim prTest As Variant
Set Range3 = Worksheets("Master 2001-02".Range("i1:i500"
For Each c In Worksheets("Master 2001-02".Range("b1:b500"
If c.Value = DistNum Then
MsgBox "found it"
Now that you've found it - look over 5 columns to the right in the same row for the value "pr" If it's there then MyFunc value = whatever is 6 columns over in the same row. If it's not there, then continue to the next match
End If
Next c
End Function
Hope someone can help. Thanks. How much more water would there be in the ocean if it weren't for sponges?