if font is bold then cell value is number

  • Thread starter Thread starter Jon
  • Start date Start date
J

Jon

Greeting,

Is there any code to input a value to cell if A1 is bold and Red color?
 
Sub jon()
With Range("A1").Font
If .FontStyle = "Bold" And .ColorIndex = 3 Then
Range("A1").Value = 123
End If
End With
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