Solved

Select specific RGB cell color

Posted on 2013-12-15
1
309 Views
Last Modified: 2013-12-15
Folks,
I would like to set the interior color of a cell to a defined color. I've tried the code below and it is not working:
Range("N22").Select
With Selection
.Interior.ColorIndex = RGB(83, 141, 213)
End With
Worksheets("CalAverLargestNumbers").Range("N22").Interior.ColorIndex = RGB(83, 141, 213)

Open in new window

0
Comment
Question by:Frank Freese
1 Comment
 

Accepted Solution

by:
Frank Freese earned 0 total points
Comment Utility
figured it out:
Range("N22").Interior.color = RGB(83, 141, 213)
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
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…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

771 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

12 Experts available now in Live!

Get 1:1 Help Now