Reply to comment
Excel - Finding the Last Row, Column or Cell
| This is sample code. Add error handling and adjust to your requirements as necessary. |
#DEFINE xlA1 1 #DEFINE xlR1C1 -4150 #DEFINE xlLastCell 11 * Last Row/Column lnLastRow = oSheet.UsedRange.Rows.Count lnLastCol = oSheet.UsedRange.Columns.Count * Last Cell - Intersection of the last row and the last column lcLastCell = oSheet.Cells.SpecialCells(xlLastCell).Address(,,xlR1C1)
Recent comments
1 week 4 days ago
4 weeks 20 hours ago
4 weeks 23 hours ago
4 weeks 1 day ago
4 weeks 1 day ago
5 weeks 2 days ago
8 weeks 2 days ago
10 weeks 4 days ago
12 weeks 2 days ago
12 weeks 3 days ago