Solved

changing cell color

Posted on 2002-06-16
2
2,281 Views
Last Modified: 2008-03-10
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
Comment
Question by:eaglesview
2 Comments
 
LVL 2

Accepted Solution

by:
zhangjing earned 50 total points
ID: 7082815
Cells.Select
Selection.Interior.ColorIndex = 15
0
 

Author Comment

by:eaglesview
ID: 7082839
You got it right... thanks
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question