PC Review


Reply
Thread Tools Rate Thread

AutoFilter & Selecting First Visible Cell

 
 
Simon
Guest
Posts: n/a
 
      1st Oct 2009
Hi,

I have an AutoFilter which will display one row of data (one visible row), I
want to be able to grab the value from the 5th column in that one visible
row. How can I do this?

Thanks.
Simon
 
Reply With Quote
 
 
 
 
Jacob Skaria
Guest
Posts: n/a
 
      1st Oct 2009
Here is one way. The below macro assumes you have header in Row 1

Sub Macro()
Dim lngRow As Long
lngRow = 1
Do
lngRow = lngRow + 1
Loop Until Rows(lngRow).Hidden = False
MsgBox Cells(lngRow, 5)
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Simon" wrote:

> Hi,
>
> I have an AutoFilter which will display one row of data (one visible row), I
> want to be able to grab the value from the 5th column in that one visible
> row. How can I do this?
>
> Thanks.
> Simon

 
Reply With Quote
 
GerryGerry
Guest
Posts: n/a
 
      1st Oct 2009
you can use the worksheet function subtotal this will allow you to capture
the visible row

something like '=SUBTOTAL(109,E2:E1000)'

Please post back if this was helpful
"Simon" <(E-Mail Removed)> wrote in message
news:5610FE5B-7EE0-49B0-826D-(E-Mail Removed)...
> Hi,
>
> I have an AutoFilter which will display one row of data (one visible row),
> I
> want to be able to grab the value from the 5th column in that one visible
> row. How can I do this?
>
> Thanks.
> Simon



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP: Selecting Non-Visible (Hidden) Cells with AutoFilter Applied west8100 Microsoft Excel Misc 3 11th Feb 2009 11:26 PM
HELP: Selecting Non-Visible (Hidden) Cells when AutoFilter is Appl west8100 Microsoft Excel Worksheet Functions 2 11th Feb 2009 09:20 PM
HELP: Selecting Non-Visible (Hidden) Cells with AutoFilter Applied west8100 Microsoft Excel Misc 0 10th Feb 2009 09:28 PM
HELP: Selecting Non-Visible (Hidden) Cells with AutoFilter Applied west8100 Microsoft Excel Misc 0 10th Feb 2009 09:28 PM
HELP: Selecting Non-Visible (Hidden) Cells with AutoFilter Applied west8100 Microsoft Excel Misc 0 10th Feb 2009 09:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:15 AM.