Hello.
I would like to use a macro to sort a list of names alphabeticcaly but exclude the cells that have 0.
I am using the following VBA. my cells start at C6 and are linked to another worksheet.
Sub Worksheet_Change()
On Error Resume Next
Range("C5").Sort Key1:=Range("C6"), _
Order1:=xlAscending, Header:=xlYes, _
OrderCustom:=1, MatchCase:=False, _
Orientation:=xlTopToBottom
End Sub
thank you for your help
I would like to use a macro to sort a list of names alphabeticcaly but exclude the cells that have 0.
I am using the following VBA. my cells start at C6 and are linked to another worksheet.
Sub Worksheet_Change()
On Error Resume Next
Range("C5").Sort Key1:=Range("C6"), _
Order1:=xlAscending, Header:=xlYes, _
OrderCustom:=1, MatchCase:=False, _
Orientation:=xlTopToBottom
End Sub
thank you for your help