I am building a tool that collects data from a userform and then the end user is supposed to be able to filter the master set of all the data and copy it into an email. For some reason my filter does not refine the set down to the exact day, but rather it only goes down to the month. The date is stored in a userform textbox that autopopulates with the current date, but the user is able to change it if they choose to report on older data. Here is my code for the filter;
Private Sub CommandButton6_Click()
Sheets("Master").ListObjects("Append1").Range.AutoFilter Field:=1, Operator:= _
xlFilterValues, Criteria2:=Array(1, date2_txtb)
End Sub
date2_txtb = Textbox containing date Append1: Amended query making up the "Master Set"
UPDATE:
Private Sub UserForm_Initialize()
date2_txtb.Text = Format(Now(), "MM/DD/YYYY")
End Sub