Message 1 of 4
iLogic Findrow IsNullOrEmpty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
HOW TO FIX THE ERROR? In the attachment I am sending 2 excel files and 1 part
''Example 1 = BAD - ERROR = HOW TO FIX THE ERROR? id1 = "P" id2 = 3 id3 = "S235" filepath = ThisDoc.Path location = filepath & "\" & "ExampleFind_Error.xlsx" sheetuser = "Sheet1" 'MessageBox.Show(location, "Title") i = GoExcel.FindRow(location, sheetuser, "aa", "=", id1, "bb", "=", id2, "cc", "=", id3) MessageBox.Show(i, "Title") MessageBox.Show(GoExcel.CellValue(location, sheetuser, "A" & i), "Title") GoExcel.Close InventorVb.DocumentUpdate()
''Example 2 = OK 'id1 = "P" 'id2 = 3 'id3 = "S235" 'filepath = ThisDoc.Path 'location = filepath & "\" & "ExampleFind.xlsx" 'sheetuser = "Sheet1" ''MessageBox.Show(location, "Title") 'i = GoExcel.FindRow(location, sheetuser, "aa", "=", id1, "bb", "=", id2, "cc", "=", id3) 'MessageBox.Show(i, "Title") 'MessageBox.Show(GoExcel.CellValue(location, sheetuser, "A" & i), "Title") 'GoExcel.Close 'InventorVb.DocumentUpdate()