Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Howdie, I want to insert the function below into VBA. I create a new module and paste it in, but how do I run it, or see the results of it? Thanks Darin Function fzLastValue(RangeId As Variant, Optional byColumn As Boolean = True) Dim cLast As Long Dim oLast As Range Application.Volatile If byColumn Then cLast = Cells(Rows.Count, RangeId).End(xlUp).Row Set oLast = Range(RangeId & cLast) Else cLast = Cells(RangeId, Columns.Count).End(xlToLeft).Column Set oLast = Cells(RangeId, cLast) End If fzLastValue = oLast.Value End Function *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Inserting dates function | Excel Worksheet Functions | |||
Inserting a function into a worksheet | Excel Discussion (Misc queries) | |||
Inserting Pictures with IF function | Excel Worksheet Functions | |||
Inserting an AutoDate Function | New Users to Excel | |||
Inserting a SUM Function | Excel Programming |