Message 1 of 5

Not applicable
07-02-2019
05:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I am very new to iLogic, but have been interested in getting to know it better. I am trying to write a piece of code that will allow me to pull information from an excel file and insert that into the iProperties for the part specified. the excel file is very simple and in the first row the columns read as follows: PART NUMBER, DESCRIPTION, PROJECT, TITLE
I have got the code to read from the file, but it only fills out the iProperties on the part with information listed from the first part on the list in the excel file.
part_number = InputBox("Plese enter the part number", "Get Data") i = GoExcel.FindRow("C:\LSE Vault\Data\iProperties_new.xlsx", "Sheet1", "PART NUMBER", "=", part_number, "DESCRIPTION", "=", part_description, "PROJECT", "=", part_project, "TITLE", "=", part_title) part_description = GoExcel.CurrentRowValue("DESCRIPTION") part_project = GoExcel.CurrentRowValue("PROJECT") part_title = GoExcel.CurrentRowValue("TITLE") iProperties.Value("Project", "Part Number") = part_number iProperties.Value("Project", "Description") = part_description iProperties.Value("Project", "Project") = part_project iProperties.Value("Summary", "Title") = part_title MessageBox.Show("All properties have been applied to " & part_number, "Success")
Solved! Go to Solution.