Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2324
  • Last Modified:

changing cell color

Hello,
Is there a way to change the color of the background of a cell using MACRO in Excel?
I've tried using
    cells.background = vbGray
but it returns an error in properties..

thanks..
cris
0
eaglesview
Asked:
eaglesview
1 Solution
 
zhangjingCommented:
Cells.Select
Selection.Interior.ColorIndex = 15
0
 
eaglesviewAuthor Commented:
You got it right... thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now