Waving Not Drowning
New Member
- Joined
- Apr 7, 2024
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
Greetings people,
Many times visitor, first time poster.
I currently have a project where I would like to set up a VBA macro where I can fetch a start date and a end date into a criteria range filter.
The start and end date is in a separate sheet "indata". The list I want to apply the criteria filter on is in a separate sheet, "filter_sheet".
current I have a rather rudimentary inbox function set up but ideally I wish to have it fetch the start and end date automatically from cells in indata sheet.
current inbox code for reference;
Sheets("filter_sheet").Select
ActiveSheet.Range("$A$1:$E$6980").AutoFilter Field:=1, Criteria1:= _
InputBox("Enter from date", "From Date", 1), Operator:=xlAnd, Criteria2:=InputBox("Enter end date", "To Date", 1)
Thanks
Many times visitor, first time poster.
I currently have a project where I would like to set up a VBA macro where I can fetch a start date and a end date into a criteria range filter.
The start and end date is in a separate sheet "indata". The list I want to apply the criteria filter on is in a separate sheet, "filter_sheet".
current I have a rather rudimentary inbox function set up but ideally I wish to have it fetch the start and end date automatically from cells in indata sheet.
current inbox code for reference;
Sheets("filter_sheet").Select
ActiveSheet.Range("$A$1:$E$6980").AutoFilter Field:=1, Criteria1:= _
InputBox("Enter from date", "From Date", 1), Operator:=xlAnd, Criteria2:=InputBox("Enter end date", "To Date", 1)
Thanks