ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   AUTOFILTER-2 non-adjacent columns (https://www.excelbanter.com/new-users-excel/187657-autofilter-2-non-adjacent-columns.html)

Garyw

AUTOFILTER-2 non-adjacent columns
 
How do I create an autofilter for columns that are not next each other?
Example, COLUMN A and COLUMN C may be the only columns that are important for
my purpose on a spread-sheet.

Max

AUTOFILTER-2 non-adjacent columns
 
"GaryW" wrote:
How do I create an autofilter for columns that are not next each other?
Example, COLUMN A and COLUMN C may be the only columns
that are important for my purpose on a spread-sheet.


You can't. I'd just live with this constraint.

Anyway, here's a sub that I came across that
you could try to "remove" the autofilter in col B
after it is applied to cols A to C.

Sub AutoFilterCustom()
Range("A1").AutoFilter Field:=2, VisibleDropDown:=False
End Sub
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

Garyw

AUTOFILTER-2 non-adjacent columns
 
Thanks, much. Saved me more time.

"Max" wrote:

"GaryW" wrote:
How do I create an autofilter for columns that are not next each other?
Example, COLUMN A and COLUMN C may be the only columns
that are important for my purpose on a spread-sheet.


You can't. I'd just live with this constraint.

Anyway, here's a sub that I came across that
you could try to "remove" the autofilter in col B
after it is applied to cols A to C.

Sub AutoFilterCustom()
Range("A1").AutoFilter Field:=2, VisibleDropDown:=False
End Sub
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


Max

AUTOFILTER-2 non-adjacent columns
 
Welcome. Do spare a moment to press the "Yes" button below.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"GaryW" wrote:
Thanks, much. Saved me more time.




All times are GMT +1. The time now is 02:26 PM.

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