ciao
cosi a spanne ti posso dire solamente di inserire la UDF dopo la tua sub() e applicare questa al posto della tua SUM()
da cosi
ActiveCell.Offset(1, 0) = WorksheetFunction.Sum(Zone)
a cosi
ActiveCell.Offset(1, 0) = SommaNoColore(Range(tuo range))
esempio di utilizzo con dati da sommare da Range("A1:A10")
Option Explicit
Sub xxxx()
Cells(1, "C") = SommaNoColore(Range("A1:A10"))
End Sub
Function SommaNoColore(ByVal Rng As Range) As Double
Dim colCella As Variant
For Each colCella In Rng
If colCella.Interior.ColorIndex = xlNone Then
SommaNoColore = SommaNoColore + colCella.Value
End If
Next
End Function
Ciao da locate
excel 2007 / 13