ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Cell adress for next non-blank cell in a range? (https://www.excelbanter.com/excel-programming/365630-cell-adress-next-non-blank-cell-range.html)

toreadore

Cell adress for next non-blank cell in a range?
 

Please help: How can i programmatically lookup the cell adress for nex
non-blank cell in a range?

Toreador

--
toreador
-----------------------------------------------------------------------
toreadore's Profile: http://www.excelforum.com/member.php...fo&userid=3585
View this thread: http://www.excelforum.com/showthread.php?threadid=55640


Gary''s Student

Cell adress for next non-blank cell in a range?
 
The UDF returns the cell address of the first non-blank cell in a range:

Function nonblank(R As Range) As String
Dim rr As Range
nonblank = ""
For Each rr In R
If IsEmpty(rr.Value) Then
Else
nonblank = rr.Address
Exit Function
End If
Next
End Function

--
Gary's Student


"toreadore" wrote:


Please help: How can i programmatically lookup the cell adress for next
non-blank cell in a range?

Toreadore


--
toreadore
------------------------------------------------------------------------
toreadore's Profile: http://www.excelforum.com/member.php...o&userid=35850
View this thread: http://www.excelforum.com/showthread...hreadid=556409



toreadore[_2_]

Cell adress for next non-blank cell in a range?
 

toreadore Wrote:
Please help: How can i programmatically lookup the cell adress for next
non-blank cell in a range?

Toreadore


Great!
Thanx!


--
toreadore
------------------------------------------------------------------------
toreadore's Profile: http://www.excelforum.com/member.php...o&userid=35850
View this thread: http://www.excelforum.com/showthread...hreadid=556409



All times are GMT +1. The time now is 05:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com