参考代码
Tables("表A").Filter = "[时间] >= #" & new date(1900, 1, 1, 9, 0, 0) & "# and [时间] <= #" & Date.Today.AddHours(23).AddMinutes(59) & "#"