Find Last Occurence in a Range with VBA

  • Thread starter Thread starter jlclyde
  • Start date Start date
J

jlclyde

I am using find to get the first address of occurences in a row, but
how do you get the last occurence?

Thanks,
Jay
 
Jay,

Dim myC As Range
Set myC = Range("A2:A100").Find("Jay", , , , , xlPrevious)
MsgBox myC.Address

HTH,
Bernie
MS Excel MVP
 
Jay,

Dim myC As Range
Set myC = Range("A2:A100").Find("Jay", , , , , xlPrevious)
MsgBox myC.Address

HTH,
Bernie
MS Excel MVP







- Show quoted text -

This was not what I was thinking but this will do nicely.
Thanks,
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top