Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Cheers all,
I wrote a UFD to return address of last cell of a column of data. The function takes a cell reference in the column of interest as its argument. For example The data is in a range on worksheet1 B2:D6, lastcellref(b2) should return $b$6 the Function code is: Function lastcellref(thiscolumn As Variant) Dim lastcell As Variant Set lastcell = Cells(1001, thiscolumn.Column).End(xlUp) Set lastcellref = lastcell.AddressLocal(RowAbsolute:=True, columnabsolute:=True) End Function when I run this function, I get Run time error 424, object required. what am I doing wrong? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF Function error #VALUE | Excel Worksheet Functions | |||
Possible error in MOD function | Excel Worksheet Functions | |||
Excel 2007 BUG UsedRange/LastCell differences with Excel2003. | Excel Discussion (Misc queries) | |||
Dynamic LastCell | Excel Programming | |||
LastCell Function | Excel Programming |