+ Reply to Thread
Results 1 to 3 of 3

Finding cell address...

  1. #1
    Registered User
    Join Date
    11-07-2005
    Posts
    2

    Finding cell address...

    Howdy all,
    I am trying to get the row index of a cell in a column that has some particular text in it... For instance. In column A, I know there is a cell with the text: "*CAPTURE.DATA" in it. How do I programmatically get the row index of that cell? What I really need is the index of the net row where that data really starts....

    Thanks in advance, for helping a excel newbie!

    Kevin Orcutt

  2. #2
    Chip Pearson
    Guest

    Re: Finding cell address...

    Try something like

    Dim FoundCell As Range
    Set FoundCell = Range("A:A").Find(what:="*CAPTURE DATA",
    LookIn:=xlValues, lookat:=xlWhole, MatchCase:=False)
    If Not FoundCell Is Nothing Then
    MsgBox "Found at row: " & FoundCell.Row
    Else
    MsgBox "Not Found"
    End If




    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com




    "korcutt" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Howdy all,
    > I am trying to get the row index of a cell in a column that has
    > some
    > particular text in it... For instance. In column A, I know
    > there is a
    > cell with the text: "*CAPTURE.DATA" in it. How do I
    > programmatically
    > get the row index of that cell? What I really need is the
    > index of the
    > net row where that data really starts....
    >
    > Thanks in advance, for helping a excel newbie!
    >
    > Kevin Orcutt
    >
    >
    > --
    > korcutt
    > ------------------------------------------------------------------------
    > korcutt's Profile:
    > http://www.excelforum.com/member.php...o&userid=28632
    > View this thread:
    > http://www.excelforum.com/showthread...hreadid=482938
    >




  3. #3
    Registered User
    Join Date
    11-07-2005
    Posts
    2
    Thanks,

    That did it...!

    Kevin Orcutt

+ 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