Function to find last value in a column
Thanks for the help.
I not very experienced at creating functions as you can see.
I want to place this function if Cell d5 and have it display the value of
the last cell in column AD.
Function LastValue(lastno As Variant)
myvar = Range("AD" & lastrow)
Set lastno = Cells(Rows.Count, "AD").End(xlUp).Row
lastno = Range.Cells.Value
End Function
What am I doing wrong?
Thanks again for your help.
Andy
|