Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GET ROW COUNT

Status
Not open for further replies.

100dtl

Programmer
Aug 18, 2003
313
0
0
GB
Hi

Not sure if this is corect forum but here goes, I 'm trying to get the row number from a worksheet with vb at a given title

Ie;; At row 100 I have some text called 'End Row' I then want to get the row number this text s on, is this possible?
 
Hi
In the example you give is the data on row 100?
Will there be more than one occurance of "End Row"?

Assuming no this will return the first row that contains "End Row"

Code:
Cells.Find("bill", [a1], , xlWhole, xlByRows, xlNext).Row

If you want the last row to cantain "End Row" then amend xlNext to xlPrevious.

If this isn't waht you're looking for I think (at least for me) you'll need to supply a little more detail.

;-)

If a man says something and there are no women there to hear him, is he still wrong? [ponder]
The faqs ma'am, just the faqs. Get the best from these forums : faq222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top