Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default First Filtered cell in range

Hi,

Using Cells.SpecialCells(xlLastCell).Select will take the Cellpointer to the
last cell.
How do i get XlFirstCell please?

Thanks

John

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default First Filtered cell in range

try this, but why do you need to select?

Sub gotofirstcellinfilteredrng()
Range("b2:b22").SpecialCells(xlVisible).Cells(1, 1).Select
End Sub

--
Don Guillett
SalesAid Software

"John" wrote in message
...
Hi,

Using Cells.SpecialCells(xlLastCell).Select will take the Cellpointer to
the
last cell.
How do i get XlFirstCell please?

Thanks

John



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default First Filtered cell in range

Hi Don,

Thank's for a solution.

The Filtered data is put into a Listbox. Problem i've got is the Filtered
range is including the Field Heading in the Listbox as well, so thought if i
could get the first row of Filtered data then i could define the range to use.

I guess another way around would be to select the first row in column D (my
source data range) as the Column heading in the Listbox.

John


"Don Guillett" wrote:

try this, but why do you need to select?

Sub gotofirstcellinfilteredrng()
Range("b2:b22").SpecialCells(xlVisible).Cells(1, 1).Select
End Sub

--
Don Guillett
SalesAid Software

"John" wrote in message
...
Hi,

Using Cells.SpecialCells(xlLastCell).Select will take the Cellpointer to
the
last cell.
How do i get XlFirstCell please?

Thanks

John




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
Sum a filtered range Peter Excel Discussion (Misc queries) 2 April 30th 09 07:57 AM
creating a filtered range/named range mark kubicki Excel Programming 1 November 4th 06 03:14 PM
Max Value within filtered range qed Excel Programming 4 December 15th 04 04:27 AM
traversing through a filtered range based on another filtered range zestpt[_4_] Excel Programming 4 July 12th 04 06:37 PM
filtered range MarkJ Excel Programming 7 June 26th 04 10:49 PM


All times are GMT +1. The time now is 02:40 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"