Akash kothari
Member
Hello Friend,
1) I have issue, I receive a filtered Excel (.xls) file named as "commentary report" where i again do a custom file while enter a number in this message box.
Dim cutoff As Integer
cutoff = Application.InputBox("Please Enter the reporting BD", _
Title:="Please Enter the reporting BD", Default:="Please Enter the reporting BD")
If cutoff = 0 Then Exit Sub
Let say i have to filter for 8 in column E using less than custom filter option it should filter for all the value less than 8. then i want to copy only the visible cells from these column A,B,C,D, F, L, R and T and paste on new workbook. " the value 8 can be repetative and not neccessarily in the numeric order.
2) Have done till below
Dim cutoff1 As Integer
(but when it comes to)
Selection.AutoFilter field:=5, Criteria1:="<" & CStr(cutoff1), Operator:=xlAnd
blank cell are getting selected and not the visible cells
where i am worng ???
what should i change to the Highlighted part "date" into in this formula if i want to use numbers like 1,2,11,12 till 25 this number will put by me manually daily into the above Msg box (mentioned under point 1)
(ActiveSheet.Range("$A$1:$BL$164").AutoFilter Field:=5, criteria1:="<" & date, Operator:=xlAnd)
please view the attached file
Thank you
akash
1) I have issue, I receive a filtered Excel (.xls) file named as "commentary report" where i again do a custom file while enter a number in this message box.
Dim cutoff As Integer
cutoff = Application.InputBox("Please Enter the reporting BD", _
Title:="Please Enter the reporting BD", Default:="Please Enter the reporting BD")
If cutoff = 0 Then Exit Sub
Let say i have to filter for 8 in column E using less than custom filter option it should filter for all the value less than 8. then i want to copy only the visible cells from these column A,B,C,D, F, L, R and T and paste on new workbook. " the value 8 can be repetative and not neccessarily in the numeric order.
2) Have done till below
Dim cutoff1 As Integer
(but when it comes to)
Selection.AutoFilter field:=5, Criteria1:="<" & CStr(cutoff1), Operator:=xlAnd
blank cell are getting selected and not the visible cells
where i am worng ???
what should i change to the Highlighted part "date" into in this formula if i want to use numbers like 1,2,11,12 till 25 this number will put by me manually daily into the above Msg box (mentioned under point 1)
(ActiveSheet.Range("$A$1:$BL$164").AutoFilter Field:=5, criteria1:="<" & date, Operator:=xlAnd)
please view the attached file
Thank you
akash