LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Excel 2007 Function Qt

Any clues for speeding things up to return the location/range of the last
filled cell in a column?

Function LastInRange(InputRange As Range)
Dim CellCount As Long
Dim i As Long
CellCount = InputRange.Count
For i = CellCount To 1 Step -1
If Not IsEmpty(InputRange(i)) And IsNumeric(InputRange(i)) Then
Set LastInRange = InputRange(i)
Exit Function
End If
Next i
LastInRange = ""
End Function
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is the justify function in Excel 2007? Brandi_G Excel Discussion (Misc queries) 2 June 22nd 09 06:38 PM
Lookup Function for Excel 2007 Cornelius Excel Discussion (Misc queries) 2 March 6th 09 12:44 AM
Excel 2007 Function Library BK Excel Discussion (Misc queries) 1 July 14th 08 10:17 PM
Excel 2007 nested function David Price Excel Worksheet Functions 2 July 9th 08 10:20 AM
RTD Function Always Returns #N/A in Excel 2007 Jose Excel Worksheet Functions 0 November 29th 06 07:28 PM


All times are GMT +1. The time now is 02:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"