ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   filter using today() (https://www.excelbanter.com/excel-discussion-misc-queries/153609-filter-using-today.html)

Carly

filter using today()
 
i'd like to autofilter using today() but can't seem to remember the code and
=today() does not work in the customization option. i know visual basic, but
i'm unable to get it to work there either.

bj

filter using today()
 

in auto filter select today's date

"carly" wrote:

i'd like to autofilter using today() but can't seem to remember the code and
=today() does not work in the customization option. i know visual basic, but
i'm unable to get it to work there either.


Bob Phillips

filter using today()
 
VBA

On Error Resume Next
Columns("H:H").AutoFilter
On Error GoTo 0
Columns("H:H").AutoFilter field:=1, Criteria1:=Format(Date,
Range("H2").NumberFormat)


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"carly" wrote in message
...
i'd like to autofilter using today() but can't seem to remember the code
and
=today() does not work in the customization option. i know visual basic,
but
i'm unable to get it to work there either.





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

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