B
Byers
I'm trying to do a similair process to the lookup function, but the dat
isn't sorted, and due to some cross sheet links, I am unable to sor
the data. So I'm looking for a function to find the correct company i
one range and then return the correct multiplier in the correspondin
range... I will comment my function with missing code
Function FindReturn(Company)
Set Foundcell = ActiveSheet.Range("B62:B69").Find_
What:="end", LookIn:=xlValues, LookAt:=xlWhole)
If Foundcell Is Nothing Then
FindReturn = 1
Else
r = Foundcell.Row
' FindReturn = value in cell with that row and in column C
End Function
I don't know if there are errors in my current code, but I don't kno
visual basic so what I have is what I've learned from working with it.
I think it should work if I can just figure out how to return the valu
of the cell
isn't sorted, and due to some cross sheet links, I am unable to sor
the data. So I'm looking for a function to find the correct company i
one range and then return the correct multiplier in the correspondin
range... I will comment my function with missing code
Function FindReturn(Company)
Set Foundcell = ActiveSheet.Range("B62:B69").Find_
What:="end", LookIn:=xlValues, LookAt:=xlWhole)
If Foundcell Is Nothing Then
FindReturn = 1
Else
r = Foundcell.Row
' FindReturn = value in cell with that row and in column C
End Function
I don't know if there are errors in my current code, but I don't kno
visual basic so what I have is what I've learned from working with it.
I think it should work if I can just figure out how to return the valu
of the cell