Frank: strikethrough condition

  • Thread starter Thread starter JoeC
  • Start date Start date
J

JoeC

Hi Frank
Can you help with the VBA wording I need to sum a col
with amounts strikethrough only?
Regards
JoeC
 
It is somewhat pointless to address your question to a specific person or
persons.

Put the following function into a standard module:

Function SumStrikethrough(rng As Range) As Integer
Dim c As Range
For Each c In rng.Cells
SumStrikethrough = SumStrikethrough - c.Font.Strikethrough
Next
End Function

Then you can use SumStrikethrough just like SUM.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top