C
Cimjet
Hi Isabelle
I would need your help again if possible.
I've solved some of the problems but I would like to be able to have a worksheet
with nothing in it.
This is my macro. Something like "If range A5:B5 is nothing then next"
Sub Filter()
Dim wsh As Worksheet
For Each wsh In Worksheets
With wsh
If wsh.Range("K3").Value = "Global" Then
If Not .FilterMode Then .Range("B5").AutoFilter
.Range("B5").AutoFilter , Field:=2, Criteria1:=">=" & Range("F1").Value2, _
Operator:=xlAnd, Criteria2:="<=" & Range("G1").Value2
End If
End With
Next
End Sub
Best regards
Cimjet
I would need your help again if possible.
I've solved some of the problems but I would like to be able to have a worksheet
with nothing in it.
This is my macro. Something like "If range A5:B5 is nothing then next"
Sub Filter()
Dim wsh As Worksheet
For Each wsh In Worksheets
With wsh
If wsh.Range("K3").Value = "Global" Then
If Not .FilterMode Then .Range("B5").AutoFilter
.Range("B5").AutoFilter , Field:=2, Criteria1:=">=" & Range("F1").Value2, _
Operator:=xlAnd, Criteria2:="<=" & Range("G1").Value2
End If
End With
Next
End Sub
Best regards
Cimjet