Hello Everyone,
I am new here, as well am new to VBA...
I wana create macro which help to find dates which are less than or equal to current date.
Can anyone help me for this?
Also please suggest simple book for MACRO in excel
Regards,
Santosh
Hello Everyone,
I am new here, as well am new to VBA...
I wana create macro which help to find dates which are less than or equal to current date.
Can anyone help me for this?
Also please suggest simple book for MACRO in excel
Regards,
Santosh
Hi,
Do you really need a macro? Standard Data Filter will allow you to select the date column and filter dates that are equal to the current date - as well as many other criteria as well.
Regards
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star iconbelow the post.
@Richard,
Thank you very much for your information. But can I use it in excel 2003 ?
Regards,
Santosh
Not without modifying the formula in A3. The filter options in 2007 were much improved over 2003. Your header indicates you have 2007 which is why I used it.
In 2003 use in A3 and copied down
Then filter column A for either "M" for month or "Q" for quarter.![]()
=IF(MONTH(B3)=MONTH(B4),"",IF(MOD(MONTH(B3),3)=0,"Q","M"))
@Richard,
Thank you very much.
but I am looking for dates on per day basis, not by month or quarter.
Also wana use this for entire excel sheet
so i guess macro will be helpful
Regards,
Santosh
can any1 help me out![]()
Sorry, I inadvertently gave you an answer to another thread.
In 2003 you can use Data Autofilter Custom. Select your date column, then select the "Is less than or equal to" option and enter the current date then OK.
Regards
To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.
If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.
Doing this will ensure you get the result you need!
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks