It may seem too easy, but I'm so desperate.
What I need to do is get the last value of column "D", which has
a large number of numbers , for example. 987654321, the code is OK if the value is only two-digit. I just can't identify the problem.
Dim lastRow As Long
lastRow = Cells(Rows.Count, "D").End(xlUp).Value
Sheets("Sheet1").TxtBox1.Value = lastRow
source
share