View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
mmc308 mmc308 is offline
external usenet poster
 
Posts: 19
Default Autofilter to tak on an Inputted Value

I have a Macro that cleans down a report then moves on to filter out a list
of data for a date period using Autofiltering,

I have included the following to be prompted for the date to be filtered,
however it never filters on the date I input, I need to use an put method as
the report is required for different dates and then moves on to do other
things

Range("G1").Select

MyValue = Application.InputBox("Enter a Date")

Selection.AutoFilter Field:=7, Criteria1:=MyValue


Can anyone advise on how I can get the autofilter method to take on the
value from the input request

TIA
mmc308