I'm converting an Access application that import data from an Excel spreadsheet, where i use
Code: Select all
excelApp.ActiveCell.SpecialCells(xlLastCell).Select to select the last cell used
excelApp.ActiveCell.Column
excelApp.ActiveCell.Row to get the column and the row of the cell.
Code: Select all
ExcelObject\Invoke("ActiveCell\SpecialCells(11)\Select")
Row = ExcelObject\GetIntegerProperty("ActiveCell\Row" )
Col = ExcelObject\GetIntegerProperty("ActiveCell\Column" )
Hope this helps

mau
PS: A big thank you to srod for COMate and to leodh for a very usefull example.