VB Code for background color

  • Thread starter Thread starter k483
  • Start date Start date
K

k483

What's the VB Code to set the background color and borders for a cell?

Thanks

p
 
Hi K483

Use your macro recorder to record the code

With Selection.Interior
.ColorIndex = 6
.Pattern = xlSolid
End With
 

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