Remove Transparency to all outlines without having any selection

Sub RemoveTransparencyFromOutlines2()
For i = 1 To shapes.count
With shapes(i)
If .Outline.Transparency > 0 Then
.Outline.Transparency = 0
End If
End With
Next i
End Sub

This is not working, Please someone help

Parents Reply Children