ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   define unique Advancefiltered range (https://www.excelbanter.com/excel-programming/364477-define-unique-advancefiltered-range.html)

Stefi

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


Mike Fogleman

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




Stefi

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






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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com