Message 1 of 8

Not applicable
02-28-2016
07:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
it is my code.
GoExcel.Open("C:\Users\a.khakbaz\Desktop\nozzle\Cube.xlsx", "Sheet1") Dim sFilePath As String= ThisDoc.Path & "\" Dim sNewName As String CurrentFilename = ThisDoc.PathAndFileName(False) For i=2 To 4 doc = ThisDoc.Document sNewName=GoExcel.CellValue("A" & i) Length = GoExcel.CellValue("B" & i) width= GoExcel.CellValue("C" & i) Height = GoExcel.CellValue("D" & i) doc.saveas(sFilePath & sNewName & ".ipt",True) Next i iLogicVb.UpdateWhenDone = True
i send you cube.ipt and cube.xlsx
in This code i want for each row of excel, a part file with the name of reading from column A (a1 or a2 or a3) is created and parameters (Lenght, Width and Height) changed.
BUT THE PROBLEM IS THAT a1.ipt and a2.ipt and a3.ipt created but with Length=width=Height=5mm. why my parameters do not change for a1 and a2??
Inventor 2016
Solved! Go to Solution.