View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Leith Ross[_136_] Leith Ross[_136_] is offline
external usenet poster
 
Posts: 1
Default Date Criteria in Excel Macro


Hello Lizz45ie,

Add 2 InputBoxes to your macro code to ask for the starting and ending
dates, like this...


Starting = InputBox("Enter Starting Date as m/d/yyyy")
Ending = InputBox("Enter Ending Date as m/d/yyyy")

Selection.AutoFilter Field:=37, Criteria1:= Starting, Operator:=xlAnd
_
, Criteria2:= Ending

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=479917