Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This code perfectily work with user number parameter but I would like to change it to user text parameters.
Dim oDoc As Document = ThisApplication.ActiveDocument Dim OComp As PartComponentDefinition = oDoc.ComponentDefinition Dim oUPs As UserParameters = OComp.Parameters.UserParameters Dim oUP As UserParameter Dim xlsFile As String = "c:\_WORK_AV\Engineering\_Invdata\iLogic\Category.xls" GoExcel.Open(xlsFile, "Sheet1") Dim i As Integer = 2 Dim Param As String Dim List As IList Do Until i = 100 Param = GoExcel.CellValue ("A" & i) If Param = "" Then Exit Do List = GoExcel.CellValues("B" & i, "L" & i) Try Test = oUPs.Item(ParamName).Value Catch oUP = oUPs.AddByExpression(Param, GoExcel.CellValue("B" & i), UnitsTypeEnum.kMillimeterLengthUnits) End Try MultiValue.List(Param) = List i = i + 1 Loop
Solved! Go to Solution.