Unsort/Unfilter/Unhide Everything!

btdown

New Member
Joined
Sep 14, 2004
Messages
4
Hi,
I'm a VBA novice and been able to add a button on the ribbon which I intend to use on whatever sheet is active to "unhide/unfilter/showall/showeverything". I've searched for the code in a bunch of places and found various snippets that were thought to work, but I've been unable to get working...

Code:
Sub Macro3(control As IRibbonControl)
ActiveSheet.AutoFilter = False
' I also tried ActiveSheet.AutoFilterMode = False --no luck.
End Sub

I realize this small snippet wont unhide/or do everything, but I figured I would at least try to reset filters and build on it from there.

Any ideas?
Thanks,
BT
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,206,755
Messages
6,074,756
Members
446,083
Latest member
kfunt

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top