Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Linking Autofilters

I have a workbook with 3 worksheets.

Each worksheet has a column with Region as the heading.

I would like to be able to use autofilter on the first worksheet and have
the same region selected as the filter on the other two worksheets.

Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Linking Autofilters

Hi RobinG

You can do this to filter each sheet with the same criteria

Sub Autofiltertest()
Dim FilterValue As String
Dim sh As Worksheet
FilterValue = "UK"

For Each sh In Sheets(Array("Sheet1", "Sheet2", "Sheet3"))
With sh
.AutoFilterMode = False
.Range("A:A").AutoFilter Field:=1, Criteria1:=FilterValue
End With
Next sh
End Sub



--
Regards Ron de Bruin
http://www.rondebruin.nl


"RobinG" wrote in message ...
I have a workbook with 3 worksheets.

Each worksheet has a column with Region as the heading.

I would like to be able to use autofilter on the first worksheet and have
the same region selected as the filter on the other two worksheets.

Any suggestions?



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
AutoFilters Joli Excel Worksheet Functions 1 March 21st 06 09:14 PM
How to set up AutoFilters? MS Suzanne Excel Worksheet Functions 1 June 30th 05 03:53 AM
autofilters Diego Villaseñor Fernández Excel Worksheet Functions 0 January 13th 05 11:27 PM
VBA and Autofilters Frank Haverkamp Excel Programming 2 January 10th 04 01:53 AM
Userforms and autofilters - Autofilters don't seen to work with userform No Name Excel Programming 3 August 28th 03 05:42 PM


All times are GMT +1. The time now is 10:09 PM.

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"