Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone,
I am trying to learn how to use "GoExcel" in inventor and every time I run the code, I get the following error message "Input string was not in a correct format". I am using Inventor Professional 2018.
Here is the code:
Dim File As String = "C:\Users\Dartherick\Downloads\Practice\Pipe Size\Pipe Size.xlsx"
GoExcel.Open(File, "Sheet1")
GoExcel.FindRow(File, "Sheet1", "Pipe Size", "=", PipeSize, "SCH", "=", SCH)
OD = GoExcel.CurrentRowValue("OD")
ID = GoExcel.CurrentRowValue("ID")
GoExcel.Close
Here is the content of the excel file:
Pipe Size | SCH | ID | OD |
3/8" | 40 | 0.493 | 0.675 |
3/8" | 80 | 0.423 | 0.675 |
1/2" | 40 | 0.622 | 0.840 |
1/2" | 80 | 0.546 | 0.840 |
3/4" | 40 | 0.824 | 1.050 |
3/4" | 80 | 0.742 | 1.050 |
1" | 40 | 1.049 | 1.315 |
1" | 80 | 0.957 | 1.315 |
1" | 160 | 0.815 | 1.315 |
I think it would be helpful to specify that this table starts in the A1 cell and the name of the sheet is "Sheet1".
Any help would be much appreciated!
Thanks.
Solved! Go to Solution.