View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Nader Nader is offline
external usenet poster
 
Posts: 44
Default Aouto filter by macro

Thank you for reply
what value i put in cell "A1"?

"Stefi" wrote:

Try this way:
Selection.AutoFilter Field:=6, _
Criteria1:="=" & Sheets("Sheet2").Range("A1").Value

Regards,
Stefi


€žnader€ť ezt Ă*rta:

hi all dears

i need your helps
I use following mocro:

Sheets("Sheet1").Select
Selection.AutoFilter Field:=6, _
Criteria1:="=" & Range("Sheet2!A1").Value

I need to filter(All) by putting a value in cell ("Sheet2!A1").

Thanks.