Font sensitve lookup - is it possible?

  • Thread starter Thread starter stevo
  • Start date Start date
S

stevo

Columns A:B contains videos and their retail price. I want to highligh
in italics the rows of the items which are out of stock.

I want to keep the price of the out of stock items in there fo
reference but highlight them in italics. This is so I can predict th
total sales without having to delete these rows.

How do I create a formula that will sum the prices in column B of al
the items except the ones in italics? Is this possible
 
try this
Sub sumNONitalics()
For Each c In Range("c2:c6")
If c.Font.FontStyle <> "Italic" Then mt = mt + c
Next
MsgBox mt
End Sub
 

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