i'm writing a script and i need to retrive the position of a specific cell, if find take data from Column B and C and display them,
i've found this:
Code: Select all
xl := ComObjCreate("Excel.Application")
xl.Visible := True ; Rendi Excel visibile
workbook := xl.Workbooks.Open(Filename)
worksheet := workbook.Sheets(1)
foundCell := worksheet.Range("A:A").Find(DateLookUp)
if (foundCell)
{
ColumnB := worksheet.Cells(foundCell.Row, 2).Value
ColumnC := worksheet.Cells(foundCell.Row, 3).Value
MsgBox, Found `n%ColumnB% `n%ColumnC%
}
else
MsgBox, nothing found.
workbook.Close(false)
xl.Quit()
I'm not very comfortable with arrays, can someone help me with a little explanation? (if it's possible in italian woud be a plus )