Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Select the 2nd cell from the top in the column with filter

Hi all, i want the select with code the 2nd cell from the top in the column A
which has filtered data so i don't know which line it is (it could be any
depending on the filter settings) and i want to know the position of that
cell when i hit the commandbutton on that sheet. Thanks for help.

PS: Application.sendkeys"^{home}" didn't help

Henrich
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default Select the 2nd cell from the top in the column with filter

Try this loop.
Sub FindNextVisible()

Dim cnt As Long
Dim Filtered As Boolean

Filtered = False
cnt = 1
Do
Filtered = Rows(Range("A1").Offset(cnt, 0).Row).Hidden
cnt = cnt + 1
Loop While Filtered
MsgBox "A" & cnt

End Sub

Charles Chickering

Henrich wrote:
Hi all, i want the select with code the 2nd cell from the top in the column A
which has filtered data so i don't know which line it is (it could be any
depending on the filter settings) and i want to know the position of that
cell when i hit the commandbutton on that sheet. Thanks for help.

PS: Application.sendkeys"^{home}" didn't help

Henrich


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Select the 2nd cell from the top in the column with filter

Charles,

thanks many time, it's working PERFEKT!!!

Henrich


€žDie_Another_Day" napĂ*sal (napĂ*sala):

Try this loop.
Sub FindNextVisible()

Dim cnt As Long
Dim Filtered As Boolean

Filtered = False
cnt = 1
Do
Filtered = Rows(Range("A1").Offset(cnt, 0).Row).Hidden
cnt = cnt + 1
Loop While Filtered
MsgBox "A" & cnt

End Sub

Charles Chickering

Henrich wrote:
Hi all, i want the select with code the 2nd cell from the top in the column A
which has filtered data so i don't know which line it is (it could be any
depending on the filter settings) and i want to know the position of that
cell when i hit the commandbutton on that sheet. Thanks for help.

PS: Application.sendkeys"^{home}" didn't help

Henrich



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
VBA: Column Select then Data Select then return to cell A1 James C[_2_] Excel Discussion (Misc queries) 3 February 1st 10 11:35 AM
select every other cell in a column deb Excel Discussion (Misc queries) 3 June 23rd 08 02:35 AM
Select specific column for auto filter [email protected] Excel Worksheet Functions 4 October 2nd 07 07:26 AM
How do I select last cell in column plus 1? limshady411 Excel Programming 3 November 11th 05 02:56 AM
"Criteria Range" in the "Data/Filter/Advanced Filter" to select Du TC Excel Worksheet Functions 1 May 12th 05 02:06 AM


All times are GMT +1. The time now is 03:57 PM.

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

About Us

"It's about Microsoft Excel"