Return value from the top of an auto filer list.

N

Newbeetle

Hi, What I would like to achive is to be able, once an auto filter has been
applied, to return the value in the first row, to another cell.

So if I have a header row say F17 with an auto filter, and data in
subsequent cells F18 through to F100, if when I use the auto filter can I
retrn the value (Will be text) in the first filtered row, ie this could be a
row from 18 through to a 100.

Regards

Newbeetle.
 
D

Don Guillett

Modify to suit

Sub firstrowdata()
lr = Cells(Rows.Count, "a").End(xlUp).Row
MsgBox Range("a7:z" & lr). _
SpecialCells(xlCellTypeVisible).Range("a1")
End Sub
 

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

Top