ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Simple Filter Question (https://www.excelbanter.com/excel-programming/279780-simple-filter-question.html)

BruceJ[_2_]

Simple Filter Question
 
I have a filter setup based on whether a time is with in a given period
based on current system time. I move through the records on a regular basis
with a userform. What will trigger the filter to re evaluate which records
to display? Sometimes it seems to adjust as the day goes by, it seems
filter, and sometimes it does not.

I have a field filled with current time, plus an adjustment for timezone

Here is the filter I am using:

Sub time4_930()
' time4_930 Macro
'Filters time periods between 4PM and 9:30PM local time

Selection.AutoFilter Field:=32, Criteria1:=".6666", Operator:=xlAnd, _
Criteria2:="<=.875"
End Sub

Thanks
Bruce





All times are GMT +1. The time now is 02:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com