Ingmar
I have written a function to do the same trick. Paste this
into the sheet module as before and use like any function.
i.e. =Strikesum(Any range here)
Function StrikeSum(n)
For Each i In n
If i.Cells.Font.Strikethrough = True Then
myTot = i.Value + myTot
End If
Next i
StrikeSum = myTot
End Function
Regards
Peter
-----Original Message-----
Ingmar
A quick reply, click on the Sheet TAb and select ViewCode
and paste this in.
Sub Test()
For Each c In Selection
c.Select
If ActiveCell.Font.Strikethrough = True Then
Tot = Tot + c
End If
Next c
MsgBox "StrikeThrough total = " & Tot
End Sub
Peter
-----Original Message-----
Hello,
I want to do a SUMIF based on the text
attribute "strikethrough" (i.e.
do not sum those that are strikethrough). I found one
based on colors,
but that is not quite the same....Anybody who can help?
Ingmar
------------------------------------------------
[/url]
~~ View and post usenet messages directly from
http://www.ExcelForum.com/
.
.