Add Autofilter to A1:Z1 on workbook

  • Thread starter Thread starter Jako
  • Start date Start date
J

Jako

Please can someone tell me how to add an Autofilter on each worksheet in
my workbook (Programmatically) from A1 to Z1.

TIA
 
Hi Jako

Sub test()
Dim ws As Worksheet
For Each ws In Worksheets
ws.AutoFilterMode = False
ws.Columns("A:Z").AutoFilter
Next ws
End Sub

--
XL2002
Regards

William

(e-mail address removed)

| Please can someone tell me how to add an Autofilter on each worksheet in
| my workbook (Programmatically) from A1 to Z1.
|
| TIA
|
|
| ---
| Message posted
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top