Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #16  
Old 02-20-2017, 04:57 PM
AC PORTA VIA
Guest
 
Posts: n/a
Default

here it is
Attached Files
File Type: xlsm Book5.xlsm (21.1 KB, 12 views)
Reply With Quote
  #17  
Old 02-20-2017, 05:47 PM
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: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

Code:
Sub Filter_for_last_day()
    Dim lr As Long
    Dim crit As Double
    
With Sheets("sheet1")
    lr = .Cells(Rows.Count, "A").End(xlUp).Row
    crit = .Cells(Rows.Count, "A").End(xlUp).Value2
    MsgBox "This is what Excel actually sees in the last cell" & vbLf & crit
    .Range("A2:A" & lr).AutoFilter Field:=1, Operator:=xlFilterValues, Criteria1:=">" & Int(crit)
End With

End Sub
The message box is just to show what's actually in that last cell.
To the left of the decimal is the day (the number of days since Jan 1, 1900) and
to the right is the time as a decimal amount of 24 hours.
Msgbox can be removed or commented out.
Reply With Quote
  #18  
Old 02-20-2017, 06:07 PM
AC PORTA VIA
Guest
 
Posts: n/a
Default

Awesome
Thank you
Thank you
Thank you!!!!!
Reply With Quote
Reply



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 03:20 AM.


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