K
Karol_tom
I have multiple values in my sheet and i want to get last entry value.
Unfortunately vlookup function get first value, so I try to write new
function, but it doesn't work.
Maybe somebody now why ?
======================================
===========
Public Function getdateFROMcell (mycell)
Windows("mySHEET.xls").Activate
''i want get row of last entry with value from mySHEET.xls
z = Range("B5").End(xlDown).Row
For i = z To 3 Step -1
If mycell= Cells(z, 2).Value Then
'column 8 contains date with I want get
getdateFROMcell = Cells(z, 8).Value
Exit For
End If
Next i
End Function
===========
Unfortunately vlookup function get first value, so I try to write new
function, but it doesn't work.
Maybe somebody now why ?
======================================
===========
Public Function getdateFROMcell (mycell)
Windows("mySHEET.xls").Activate
''i want get row of last entry with value from mySHEET.xls
z = Range("B5").End(xlDown).Row
For i = z To 3 Step -1
If mycell= Cells(z, 2).Value Then
'column 8 contains date with I want get
getdateFROMcell = Cells(z, 8).Value
Exit For
End If
Next i
End Function
===========