Hi All,
I have a custom function mentioned below and want to add new parameter "Country" in it. Can any body help me out how to do that ?
Note : Country will be in Column "B" in SBD Price sheet.
I have a custom function mentioned below and want to add new parameter "Country" in it. Can any body help me out how to do that ?
Note : Country will be in Column "B" in SBD Price sheet.
Code:
Public Function Find_Price(ByVal Item As String) As Double
Set c = Sheets("SBD Price").Range("G:G").Find(Item)
If Not c Is Nothing Then
R = Sheets("SBD Price").Range("G:G").Find(Item).Row
Dim IWP_Cost, SBD_cost As Double
SBD_cost = Sheets("SBD Price").Cells(R, 9)
Find_Price = SBD_cost
End If
End Function