Hi @TUSHAR_DIWASE ,
You can find by index
read all to get data,
data.rowcount → we have number of rows
Data.Columns.Count → we have last column as int
Convert.ToChar(Convert.ToUInt16("A"c)+3) → we have index of last cell
Sub FindLastCellInColumn()
Dim lastRow As Long
Dim ws As Worksheet
Dim columnToCheck As String
' Set the worksheet and column to check
Set ws = ThisWorkbook.Sheets("Sheet1") ' Change "Sheet1" to your sheet name
columnToCheck = "A" ' Change "A" to the column you want to check
' Find the last used row in the specified column
lastRow = ws.Cells(ws.Rows.Count, columnToCheck).End(xlUp).Row
' Display the result in the Immediate Window (Ctrl + G to open the Immediate Window)
Debug.Print "Last used cell in column " & columnToCheck & ": " & lastRow
End Sub
Paste the above code in a text file and pass the path in Invoke VBA. The Method name will be FindLastCellInColumn.
Use Read Column activity and you will get collection then get a count of that collection that will your last row value then append it with your column
collection.Count.ToString
my run