Message 1 of 14
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to find a row in an excel sheet , and read other vaule in the same row . I know how to do it in ilogic , it does know seens to be so easy to rewrite the code to vba. can you help me ?
dim ExcelPath
dim ExcelSheet
ExcelPath="C:\showprice\Showprice.xlsm"
ExcelSheet ="Price"
GoExcel.Open(ExcelPath, ExcelSheet)
GoExcel.TitleRow = 1
GoExcel.FindRowStart = 2
'NO_ collum = column A
'Raw" collum = column B
'Part Description collum = column C
Dim rowNo = GoExcel.FindRow(ExcelPath, ExcelSheet, "No_", "=", CurrentSM_Style)
If rowNo > 0 Then
RawMatrNo=GoExcel.CurrentRowValue("Raw") '
PartDescription=GoExcel.CurrentRowValue("Part Description")
End If
GoExcel.Close
Solved! Go to Solution.