ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   vba filter dates (https://www.excelbanter.com/excel-programming/322931-vba-filter-dates.html)

Duncan_J

vba filter dates
 
Hi Folks,
I use to have this code but forgot it... I need to filter coulmn F less than
or equal to todays date, and greater than or equal to todays date minus 7
days. I had the code that would do that but alas it's gone...
Thanks for any help..



Tom Ogilvy

vba filter dates
 
Turn on the macro recorder and perform the action manually. Use a custom
criteria and pick two dates (doesn't really make any difference which two).


Turn off the macro recorder

Now adjust the recorded code to apply the criteria you want.

--
Regards,
Tom Ogilvy

"Duncan_J" wrote in message
...
Hi Folks,
I use to have this code but forgot it... I need to filter coulmn F less

than
or equal to todays date, and greater than or equal to todays date minus 7
days. I had the code that would do that but alas it's gone...
Thanks for any help..





Duncan_J

vba filter dates
 
Hi Tom how are you doing?
Thanks for all the help in the past..
I'm just using =today() in the far right coulmn and beside that a coulmn
with =P2-F2 format the coulmn for numbers and filter less than or equal to
7... Works good enough...
Have a good weekend...
DJ
"Tom Ogilvy" wrote:

Turn on the macro recorder and perform the action manually. Use a custom
criteria and pick two dates (doesn't really make any difference which two).


Turn off the macro recorder

Now adjust the recorded code to apply the criteria you want.

--
Regards,
Tom Ogilvy

"Duncan_J" wrote in message
...
Hi Folks,
I use to have this code but forgot it... I need to filter coulmn F less

than
or equal to todays date, and greater than or equal to todays date minus 7
days. I had the code that would do that but alas it's gone...
Thanks for any help..






Tom Ogilvy

vba filter dates
 
Can't beat that with a stick <g

--
Regards,
Tom Ogilvy

"Duncan_J" wrote in message
...
Hi Tom how are you doing?
Thanks for all the help in the past..
I'm just using =today() in the far right coulmn and beside that a coulmn
with =P2-F2 format the coulmn for numbers and filter less than or equal to
7... Works good enough...
Have a good weekend...
DJ
"Tom Ogilvy" wrote:

Turn on the macro recorder and perform the action manually. Use a

custom
criteria and pick two dates (doesn't really make any difference which

two).


Turn off the macro recorder

Now adjust the recorded code to apply the criteria you want.

--
Regards,
Tom Ogilvy

"Duncan_J" wrote in message
...
Hi Folks,
I use to have this code but forgot it... I need to filter coulmn F

less
than
or equal to todays date, and greater than or equal to todays date

minus 7
days. I had the code that would do that but alas it's gone...
Thanks for any help..









All times are GMT +1. The time now is 05:23 PM.

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