Hello!
Does anyone have a the coding for a macro which does the following:
Reads date in column A, and delete entire row if the date is less or equal todays date + 2 days. Saturdays and mondays should not be included.
Cheers![]()
Hello!
Does anyone have a the coding for a macro which does the following:
Reads date in column A, and delete entire row if the date is less or equal todays date + 2 days. Saturdays and mondays should not be included.
Cheers![]()
Last edited by Hjahren; 11-22-2010 at 06:58 AM.
Hi,
what about this?
![]()
Please Login or Register to view this content.
Thanks! I Believe this is working perfect. But I have to give my final verdict on thursday![]()
I meant saturdays and sundays should not be included, I see that I wrote mondays. Does that differ? or did you expect it...
But I wrote exclude saturdays and mondays, but meant sundays....
I did not see it :-D
I expected Saturday + Sunday.
Anyway, You can change the code as You wish. See vba help for the Weekday function
However, if You want to test it, change the 7th line of the code to:
This will pretend, that it is friday, 26.11.2010 today and show You another result right now.![]()
Please Login or Register to view this content.
Thanks for your helpand have a nice day.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks