Get Last Column In Row
Get the last non-empty column index within a given row.
ExcelExcelGetLastColumnIndexBySpecifiedRow
What it does
Get the last non-empty column index within a given row.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Excel instance | variable | Required | excel | Name that identifies this open workbook. |
| Sheet (blank = active) | string | Optional | Worksheet name; blank uses the active sheet. Supports variables | |
| Row (1-based) | number | Required | Example: 1 Supports variables | |
| Store column index in | variable | Required | Example: lastCol |
More Excel commands
Ready to automate your busywork?
Start your free 10-day trial today. No credit card, no commitment.