Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have this that look are the partnumber in one column. but I would like to look at more column... there might be up to four column that have the same partnumber the second column might have vaule like DWG , IDW, DXF, DWF...
is it possible to find an row that have the partnumber in the first column ,and one of the valuein the second column.. and then find the value in the 3. column in the row that have both value
ExcelPath = "H:\link til tegning BC365.xlsx"
ExcelSheet = "LinkToDrawing"
Dim Partnumber = iProperties.Value("Project", "Part Number")
'Find line with file Item No_ File Type
GoExcel.Open(ExcelPath, ExcelSheet)
GoExcel.TitleRow =1
GoExcel.FindRowStart = 2
Dim rowNo = GoExcel.FindRow(ExcelPath, ExcelSheet, "Item No_", "=", Partnumber)
'MsgBox(rowNo)
If rowNo > 0 Then
Drawing = GoExcel.CurrentRowValue("Document Link")
MsgBox(Drawing)
ThisDoc.Launch(Drawing)
End If
GoExcel.Close
Solved! Go to Solution.