Having the excel table is convenient to store the data but it still needs to get to the user and be presented using a parameter and form then be processed by the user.
If you have a unique identifier then that is the easiest way to find the row similar to the member in an ipart.
Edit:
Option:1 Search excel file column "Name" for value.
Here the user selects the parameter from Drop down then the rule will run and look for the value in the excel table and return parameter values.
XlFile = "C:\......ENTER PATH.......\.xlsx"
GoExcel.Open(XlFile, "Sheet1")
'Import Excel content to Multi Value Parameter all ready created.
MultiValue.List("Name") = GoExcel.CellValues("A2", "A10")
MultiValue.List("Diameter") = GoExcel.CellValues("B2", "B10")
MultiValue.List("WallThickness") = GoExcel.CellValues( "C2", "D10")
MultiValue.List("Length") = GoExcel.CellValues("D2", "D10")
'Get the row that matches the user selected parameter
i = GoExcel.FindRow(XlFile, "BOM","Item", "=", Name)
'Assign the other Parameters based on finding the row.
Diameter = GoExcel.CurrentRowValue("Diameter")
WallThickness = GoExcel.CurrentRowValue("WallThickness")
Length = GoExcel.CurrentRowValue("Length")
MessageBox.Show(Diameter & "-" & WallThickness & "-" & Length, "Title")
Option:2 Direct reference excel cells with parameters.
If statements or Case statements method where case statements are easier to write.
Case Statements
XlFile = "C:\......ENTER PATH.......\.xlsx"
GoExcel.Open(XlFile, "BOM")
'Import Excel content to Multi Value Parameter all ready created.
MultiValue.List("Name") = GoExcel.CellValues("A2", "A10")
MultiValue.List("Diameter") = GoExcel.CellValues("B2", "B10")
MultiValue.List("WallThickness") = GoExcel.CellValues( "C2", "D10")
MultiValue.List("Length") = GoExcel.CellValues("D2", "D10")
Select Case Name
Case GoExcel.CellValue("A2")
MessageBox.Show(GoExcel.CellValue("B2"), "Title")
Case GoExcel.CellValue("A3")
MessageBox.Show(GoExcel.CellValue("B3"), "Title")
End Select
If this solved a problem, please click (accept) as solution.
Or if this helped you, please, click (like)
Regards
Alan