function that returns cell and or font color of another cell

  • Thread starter Thread starter Mark Kubicki
  • Start date Start date
M

Mark Kubicki

is there a cell that returns the numeric d=code for the font or background
color of another cell?

thanks in advance,
mark
 
Sub MarkColor()
x = Range("A1").Font.ColorIndex
y = Range("A1").Interior.ColorIndex
MsgBox "Font color is " & x & ", Interior color is " & y & "."
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