PedroMojica
New Member
- Joined
- Jul 19, 2011
- Messages
- 9
having trouble typing code to ignore the zeros in the spreadsheet, just trying to bold the lowest number without it being zero. Here is the code I have right now, cant seem to find the right combination to not count the zeros in each column.
Sub BoldMinimum()
Selection.FormatConditions.Delete
Selection.FormatConditions.Add _
Type:=xlExpression, Formula1:= _
"=" & ActiveCell.Address(0, 0) & _
"=Min(" & Selection.Address & ")"
With Selection.FormatConditions(1).Font
.Bold = True
.Italic = False
End With
End Sub
Sub BoldMinimum()
Selection.FormatConditions.Delete
Selection.FormatConditions.Add _
Type:=xlExpression, Formula1:= _
"=" & ActiveCell.Address(0, 0) & _
"=Min(" & Selection.Address & ")"
With Selection.FormatConditions(1).Font
.Bold = True
.Italic = False
End With
End Sub