Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default define unique Advancefiltered range

Hi All,

I made a unique filtering, it works:

Range("C2:C367").AdvancedFilter Action:=xlFilterInPlace, Unique:=True

How can I define a range consisting of the unique visible cells?

Thanks,
Stefi

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default define unique Advancefiltered range

Here is an example using a smaller range than yours:

Sub Filtered_Range()
Range("C2:C45").AdvancedFilter Action:=xlFilterInPlace, Unique:=True
Range("C2:C45").SpecialCells(xlCellTypeVisible).Co py Range("D2")
ActiveSheet.ShowAllData
End Sub

Mike F

"Stefi" wrote in message
...
Hi All,

I made a unique filtering, it works:

Range("C2:C367").AdvancedFilter Action:=xlFilterInPlace, Unique:=True

How can I define a range consisting of the unique visible cells?

Thanks,
Stefi



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default define unique Advancefiltered range

Thanks Mike, it works!
Stefi


€˛Mike Fogleman€¯ ezt Ć*rta:

Here is an example using a smaller range than yours:

Sub Filtered_Range()
Range("C2:C45").AdvancedFilter Action:=xlFilterInPlace, Unique:=True
Range("C2:C45").SpecialCells(xlCellTypeVisible).Co py Range("D2")
ActiveSheet.ShowAllData
End Sub

Mike F

"Stefi" wrote in message
...
Hi All,

I made a unique filtering, it works:

Range("C2:C367").AdvancedFilter Action:=xlFilterInPlace, Unique:=True

How can I define a range consisting of the unique visible cells?

Thanks,
Stefi




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
Define Name range Gotroots Excel Discussion (Misc queries) 10 December 19th 09 11:30 AM
Define a range jlclyde Excel Discussion (Misc queries) 2 April 17th 08 08:26 PM
Define Range in VBA loopoo[_15_] Excel Programming 2 November 22nd 05 01:38 PM
Define a range based on another named range Basil Excel Worksheet Functions 2 February 21st 05 01:47 PM
Define Range Name Wayne Huxman Excel Programming 3 November 21st 04 09:56 PM


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