Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have a macro below to turn the autofilter "on" for multiple selected sheets but it generated error. Please advise. Sub auto_filter_all_sheets() Dim ws As Worksheet Application.ScreenUpdating = False sAddress = Selection.Address For Each ws In ActiveWindow.SelectedSheets ws.Activate If sAddress "" Then ws.Range(sAddress).Select Selection.AutoFilter Next ws Application.ScreenUpdating = True End Sub TIA. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro_creating sheets from AutoFilter list | Excel Discussion (Misc queries) | |||
Using Autofilter on Protected sheets | Excel Discussion (Misc queries) | |||
AutoFilter on one sheet filters same on other sheets? | Excel Programming | |||
Autofilter Lists across Multiple Sheets, Maintain Correct Referenc | Excel Worksheet Functions | |||
Recalculating Excel Sheets with activated autofilter | Excel Programming |