ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   PIA interop Excel - VB.net accessing Cell (https://www.excelbanter.com/excel-programming/379725-pia-interop-excel-vbulletin-net-accessing-cell.html)

Chris Le Roquais

PIA interop Excel - VB.net accessing Cell
 
Hi,

I'm using PIA (Primary Interop Assembly) to drive Excel from vb.net code.
I'm facing the problem in the code to retrieve the row number of the last
used cell in an excel worksheet.

I've found the last used Cell is accessible from
'myWorksheet.Cells.SpecialCells(Excel.XlCellType.x lCellTypeLastCell'
but can't figure out how to retrieve the row number.

any help much appreciated.
Thx,
C




All times are GMT +1. The time now is 02:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com