Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel command to Fill back color of selected Cells 1

Status
Not open for further replies.

mstrcmtr

Programmer
Nov 14, 2007
103
PK
To set Fore Color of Cells using the following command which is Okay

oXs.Range('A1' + ':' + 'W2').Font.Color = '-4165632' && BLUE

Q. What will be the command for Excel to fill Cells Back color of selected range
 
Something like this:

Code:
OEXCEL.CELLS(5,3).SELECT
OEXCEL.ACTIVECELL.INTERIOR.COLORINDEX = 36


Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
 
Tip:

If you don't know how automate something in Excel, record the action as a macro then read it back...

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top