Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default remove autofilter from some columns

I have turned on Autofilter, but I only use one column to filter. How would
I remove or hide the other dropboxes for the rest of the row?

Your help is appreciated!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default remove autofilter from some columns

Remove the filter and only apply it to that single column.

You can actually hide the arrows, but when the columns to be filtered are
contiguous, it doesn't make much sense to add them all, then hide some.

Capp wrote:

I have turned on Autofilter, but I only use one column to filter. How would
I remove or hide the other dropboxes for the rest of the row?

Your help is appreciated!


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default remove autofilter from some columns

How do I hide arrows? Or only add specific autofilters to selected columns?

"Dave Peterson" wrote:

Remove the filter and only apply it to that single column.

You can actually hide the arrows, but when the columns to be filtered are
contiguous, it doesn't make much sense to add them all, then hide some.

Capp wrote:

I have turned on Autofilter, but I only use one column to filter. How would
I remove or hide the other dropboxes for the rest of the row?

Your help is appreciated!


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default remove autofilter from some columns

You can use this to apply the filter to a single column:

Option Explicit
Sub testme01()
Dim wks As Worksheet
Set wks = ActiveSheet
With wks
'remove any existing filter arrows
.AutoFilterMode = False
.Range("e:e").AutoFilter
End With
End Sub

You could use:
.Range("e:G").AutoFilter
to get arrows in E:G.

If you wanted to apply filter to all the columns (say A:I) and hide some:

Option Explicit
Sub testme01()
Dim wks As Worksheet
Dim iCtr As Long
Set wks = ActiveSheet
With wks
'remove any existing filter arrows
.AutoFilterMode = False
For iCtr = 1 To 9 Step 2 'A to I
'hide arrows in A, C, E, G, I
.Range("a:I").AutoFilter field:=iCtr, visibledropdown:=False
Next iCtr
End With
End Sub



Capp wrote:

How do I hide arrows? Or only add specific autofilters to selected columns?

"Dave Peterson" wrote:

Remove the filter and only apply it to that single column.

You can actually hide the arrows, but when the columns to be filtered are
contiguous, it doesn't make much sense to add them all, then hide some.

Capp wrote:

I have turned on Autofilter, but I only use one column to filter. How would
I remove or hide the other dropboxes for the rest of the row?

Your help is appreciated!


--

Dave Peterson


--

Dave Peterson
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
Can you Create an Autofilter that goes over 2 columns at the same Abdul Excel Discussion (Misc queries) 1 November 11th 08 04:50 AM
autofilter on many columns inquirer Excel Discussion (Misc queries) 3 July 16th 06 04:32 AM
Is there a way I can autofilter columns instead of rows Brian A. Excel Worksheet Functions 0 October 27th 05 03:15 PM
Remove Autofilter ilyaskazi[_68_] Excel Programming 4 September 8th 05 02:15 PM
VBA to set which columns in Autofilter miker1999[_10_] Excel Programming 2 February 15th 04 02:44 AM


All times are GMT +1. The time now is 02:35 AM.

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"