Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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


--
korcutt
------------------------------------------------------------------------
korcutt's Profile: http://www.excelforum.com/member.php...o&userid=28632
View this thread: http://www.excelforum.com/showthread...hreadid=482938

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default 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"
wrote in message
...

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Finding cell address...


Thanks,

That did it...!

Kevin Orcut

--
korcut
-----------------------------------------------------------------------
korcutt's Profile: http://www.excelforum.com/member.php...fo&userid=2863
View this thread: http://www.excelforum.com/showthread.php?threadid=48293

Reply
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
Finding Cell address by value default105 Excel Discussion (Misc queries) 2 June 30th 09 09:31 PM
Finding Cell address by value default105 Excel Discussion (Misc queries) 1 June 30th 09 11:05 AM
Finding the Address of a Cell tb Excel Worksheet Functions 5 December 13th 07 01:59 PM
Finding Cell Address for Use as Formula Argument pdberger Excel Worksheet Functions 4 December 5th 05 11:07 PM
Finding cell address for minimum number Tre_cool[_11_] Excel Programming 9 October 18th 05 06:56 PM


All times are GMT +1. The time now is 10:21 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"