Hello !
I am having a slight problem with creating my macro.
I'm supposed to create a tracking tool, in which theres several columns of information. But there are two columns i want the macro to filter on.
On C/D number and on Remarks. But the problem is, the two are not always filled in equally.
For example
C/D nummer------- Remarks
1234 ------------- (empty)
So now only 1 column has a value in it, but if i filter it will filter only on rows with both columns filled in, but i also need the ones with only 1 column filled in.
For now this is what i have
I hope i made the problem clear and that someone knows the anwser
Any help will be appreciated !
I am having a slight problem with creating my macro.
I'm supposed to create a tracking tool, in which theres several columns of information. But there are two columns i want the macro to filter on.
On C/D number and on Remarks. But the problem is, the two are not always filled in equally.
For example
C/D nummer------- Remarks
1234 ------------- (empty)
So now only 1 column has a value in it, but if i filter it will filter only on rows with both columns filled in, but i also need the ones with only 1 column filled in.
For now this is what i have
Code:
Sub ShowUnfinished()
Sheet1.Activate
'Turn of any filter
If ActiveSheet.AutoFilterMode Then
If ActiveSheet.FilterMode Then
ActiveSheet.ShowAllData
End If
ElseIf ActiveSheet.FilterMode Then
ActiveSheet.ShowAllData
End If
'Select unfinished SBR's
With Worksheets("Sheet1")
.Cells.AutoFilter Field:=16, Criteria1:="="
.Cells.AutoFilter Field:=24, Criteria1:="<>"
End With
End Sub
I hope i made the problem clear and that someone knows the anwser
Any help will be appreciated !