Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default AutoFilter & Selecting First Visible Cell

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default AutoFilter & Selecting First Visible Cell

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default AutoFilter & Selecting First Visible Cell

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" wrote in message
...
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
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
HELP: Selecting Non-Visible (Hidden) Cells with AutoFilter Applied west8100 Excel Discussion (Misc queries) 3 February 11th 09 11:26 PM
HELP: Selecting Non-Visible (Hidden) Cells when AutoFilter is Appl west8100 Excel Worksheet Functions 2 February 11th 09 09:20 PM
HELP: Selecting Non-Visible (Hidden) Cells with AutoFilter Applied west8100 Excel Discussion (Misc queries) 0 February 10th 09 09:28 PM
HELP: Selecting Non-Visible (Hidden) Cells with AutoFilter Applied west8100 Excel Discussion (Misc queries) 0 February 10th 09 09:28 PM
HELP: Selecting Non-Visible (Hidden) Cells with AutoFilter Applied west8100 Excel Discussion (Misc queries) 0 February 10th 09 09:27 PM


All times are GMT +1. The time now is 05:07 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"