Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, does anyone have an idea?
Is something like this possible with iLogic? Files in the attachment.
I created the code below and I don't know how to proceed.
location = "myfile.xlsx" sheet1 = "Sheet1" numberrow = "" Try p1 = "dia" m1 = Parameter.Param(p1) Catch 'Creating a parameter op1 = ThisDoc.Document.ComponentDefinition.Parameters.UserParameters.AddbyExpression(p1, 10, "mm") End Try Try p2 = "length" m2 = Parameter.Param(p2) Catch 'Creating a parameter op2 = ThisDoc.Document.ComponentDefinition.Parameters.UserParameters.AddbyExpression(p2, 100, "mm") End Try 'Creates a list of materials, draws from the list created in the Excel table LIST MultiValue.List(p1) = GoExcel.CellValues(location, sheet1, "B2", numberrow) i = GoExcel.FindRow(location, sheet1, "dia", "=", Parameter("dia")) Parameter("length") = GoExcel.CellValue(location, sheet1, "C" & i)
Solved! Go to Solution.