Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 02-20-2017, 10:34 AM
NoSparks NoSparks is offline how to filter column by last working day in excel Windows 7 64bit how to filter column by last working day in excel Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 842
NoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of light
Default

This doesn't use Filter, but, I think it might accomplish what you're after.
Code:
Sub Show_Last_Day_Only()
    Dim lr As Long
With Sheets("Sheet1")
    lr = .Cells(Rows.Count, "A").End(xlUp).Row
    Rows("3:" & lr - 1).Hidden = True
End With
End Sub
and to bring everything back
Code:
Sub Show_All_Days()
    Dim lr As Long
With Sheets("Sheet1")
    lr = .Cells(Rows.Count, "A").End(xlUp).Row
    Rows("3:" & lr - 1).Hidden = False
End With
End Sub
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Report chart filter not working Asita Project 5 07-07-2015 01:08 PM
Contact view filter not working gebobs Outlook 2 03-10-2014 06:28 AM
Range Name in Adv Filter -> NOt working 56_kruiser Excel 2 11-20-2012 09:58 AM
drop down menu that control filter on other column massi Excel 0 08-24-2010 01:13 PM
junk email filter not working michmurp Outlook 0 09-15-2008 10:57 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:09 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft