+ Reply to Thread
Results 1 to 2 of 2

Return cell adress for next non-blank cell in a range

  1. #1
    Registered User
    Join Date
    06-28-2006
    Posts
    4

    Return cell adress for next non-blank cell in a range

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

    Toreadore

  2. #2
    Gary''s Student
    Guest

    RE: Return cell adress for next non-blank cell in a range

    This 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=556407
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1