Hi,
I'm new to creating macro's in excel but not new to writing code. I've just been given a task by my boss to create some macro's in an excel spreadsheet we use as a booking database.
He has asked me to create a macro that will filter the bookings relative to the date it is today. The date filters required are:
-> Show only last weeks bookings
-> Show only the upcoming weeks bookings
I'm using excel 2007 and have found the built in "xlfilter" functions. The only problem is that Ecxel see's a week starting on Sunday. Being that we are an entertainment agency most of our bookings are "Thursday to Sunday" so I need excel to see a week as starting on Monday and finishing on the following Sunday.
In my research I just haven't been able to find a way to define the week. I can get the filter to work on everything else the way I want but not dates.
I'm sure I'm missing something totally obvious.
I've included the code to the macro I have for your convenience.
Please Login or Register to view this content.
Bookmarks