Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
celestemberner
 
Posts: n/a
Default How do I use auto filter on only 1 column in a spreadsheet?

I have a list of clients, phone numbers, types of business and dollar
amounts. I only want to use the auto filter for the columns that have client
name and types of business. It would do no good to filter by phones numbers,
etc.
  #2   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

You could use a macro to hide some of the arrows. For example:

'==========================
Sub HideSomeArrows()
'hide some autofilter arrows
Dim c As Range
Dim i As Integer
i = Cells(1, 1).End(xlToRight).Column
Application.ScreenUpdating = False
For Each c In Range(Cells(1, 1), Cells(1, i))
Select Case c.Column
Case 2, 3, 5, 6
c.AutoFilter Field:=c.Column, _
Visibledropdown:=False
Case Else
c.AutoFilter Field:=c.Column, _
Visibledropdown:=True
End Select
Next
Application.ScreenUpdating = True
End Sub
'=============================

Copy the code to a regular module, as described he

http://www.contextures.com/xlvba01.html

To run the macro, activate the sheet with the AutoFilter
Then choose ToolsMacroMacros
Select the HideSomeArrows macro, and click the Run button

celestemberner wrote:
I have a list of clients, phone numbers, types of business and dollar
amounts. I only want to use the auto filter for the columns that have client
name and types of business. It would do no good to filter by phones numbers,
etc.



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #3   Report Post  
Gord Dibben
 
Posts: n/a
Default

In that case just click on the arrow for Clients or Business Types.

You cannot filter just one or two columns and have the others not filtered
along with it. Filtered out rows will be hidden no matter which column you
use as the criterion column.

If the extra arrows bother you, select just those two columns by selecting the
headers, you will get filter arrows in just those columns.


Gord Dibben Excel MVP

On Tue, 1 Feb 2005 15:07:02 -0800, "celestemberner"
wrote:

I have a list of clients, phone numbers, types of business and dollar
amounts. I only want to use the auto filter for the columns that have client
name and types of business. It would do no good to filter by phones numbers,
etc.


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
Column character width on auto filter Floyd III Excel Discussion (Misc queries) 2 January 7th 05 01:59 AM
auto filter question Juco Excel Worksheet Functions 0 November 29th 04 02:48 PM
auto filter question Juco Excel Worksheet Functions 1 November 28th 04 02:51 PM
The Auto Filter button lost the column specified option. D Excel Worksheet Functions 1 November 4th 04 11:47 PM
Why can't my macro use Auto Filter when I told the Sheet Protecti. KC Rippstein Excel Worksheet Functions 1 October 28th 04 06:13 PM


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