goExcel.FindRow gives result of -1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to access multiple columns data on a single row that is "flagged" by a specific value (i.e. 1650).
The following code sets a parameter value "BSeries" to object Series_val and then I use goExcel.FindRow to locate the row that "BSeries" value is. But when I run the code, the messagebox shows a result of -1.
I have a form that I am using to populate parameters, based on the BSeries.
What am I doing wrong.
GoExcel.Open("C:\Users\jpetty\Documents\John's Scratch\bfd\Belt Data.xlsx", "Belt_Data")
Series_val = Parameter.Value("BSeries")
MessageBox.Show(Series_val)
j = GoExcel.FindRow("C:\Users\jpetty\Documents\John's Scratch\bfd\Belt Data.xlsx", "Belt_Data", "SERIES", "=", Series_val)
'b = GoExcel.CurrentRowValue("SERIES")
MessageBox.Show(j)
'MessageBox.Show(Parameter("BSeries"))