Solved

changing cell color

Posted on 2002-06-16
2
2,263 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction Perhaps more familiar to developers who primarily use VBScript than to developers who tend to work only with Microsoft Office and Visual Basic for Applications (VBA), the Dictionary is a powerful and versatile class, and is useful …
This article will show you how to use shortcut menus in the Access run-time environment.
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now