The date filters work with the formulas, but they mess up all the other criteria filters. I forgot that the fields must be completely blank for the filter to work properly. My form has a macro in it to clear the fields everytime it is opened, so it was clearing out the formulas for the dates as well. Once the formulas are gone, the dates don't work, and if I leave them in, the remaining filters don't work...grrrrr!
So I am now attempting to write VBA which will look to the date columns I created out of the filter fields, test if they are empty or not (if user input dates on the form), then grab data from the columns with the ">=" with the dates and drop it back into the criteria fields. I am a self-taught and inexperienced VBA user so I cannot seem to get this off the ground either, although I have looked at numerous examples and am unsure where this is going wrong. The start date from the form is in AB2, the end date from the form is in AC2, the start and end dates with the ">=" and "<=" criteria and in AD2 and AE2 respectively and the criteria columns are G and H:
Bookmarks