Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default Custom Color/Color Index

Can you apply a self-defined custom color (an RGB Combination) 2 cell(s) via
a macro? If yes, kindly provide a sample.

How can I get a list of color index of pre-defined colors for their
application on cell(s)?

Thanx!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Custom Color/Color Index


ActiveWorkbook.Colors(15) = RGB(211, 211, 211)
Activecell.interior.colorindex = 15

For i = 1 To 56

Cells(i, "A").Interior.Colorindex = i
Cells(i, "B").Value = i
Next i


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"FARAZ QURESHI" wrote in message
...
Can you apply a self-defined custom color (an RGB Combination) 2 cell(s)
via
a macro? If yes, kindly provide a sample.

How can I get a list of color index of pre-defined colors for their
application on cell(s)?

Thanx!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default Custom Color/Color Index

Sure was a Great 1

Thanx!!!
--
Best Regards,

FARAZ A. QURESHI


"Bob Phillips" wrote:


ActiveWorkbook.Colors(15) = RGB(211, 211, 211)
Activecell.interior.colorindex = 15

For i = 1 To 56

Cells(i, "A").Interior.Colorindex = i
Cells(i, "B").Value = i
Next i


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"FARAZ QURESHI" wrote in message
...
Can you apply a self-defined custom color (an RGB Combination) 2 cell(s)
via
a macro? If yes, kindly provide a sample.

How can I get a list of color index of pre-defined colors for their
application on cell(s)?

Thanx!




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default Custom Color/Color Index

Hey Bob!

Does that mean that I can define only upto a maximum number of 56 colors?

Thanx Again
--
Best Regards,

FARAZ A. QURESHI


"Bob Phillips" wrote:


ActiveWorkbook.Colors(15) = RGB(211, 211, 211)
Activecell.interior.colorindex = 15

For i = 1 To 56

Cells(i, "A").Interior.Colorindex = i
Cells(i, "B").Value = i
Next i


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"FARAZ QURESHI" wrote in message
...
Can you apply a self-defined custom color (an RGB Combination) 2 cell(s)
via
a macro? If yes, kindly provide a sample.

How can I get a list of color index of pre-defined colors for their
application on cell(s)?

Thanx!




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Custom Color/Color Index

Yes, it means exactly that in pre-XL2007.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"FARAZ QURESHI" wrote in message
...
Hey Bob!

Does that mean that I can define only upto a maximum number of 56 colors?

Thanx Again
--
Best Regards,

FARAZ A. QURESHI


"Bob Phillips" wrote:


ActiveWorkbook.Colors(15) = RGB(211, 211, 211)
Activecell.interior.colorindex = 15

For i = 1 To 56

Cells(i, "A").Interior.Colorindex = i
Cells(i, "B").Value = i
Next i


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"FARAZ QURESHI" wrote in message
...
Can you apply a self-defined custom color (an RGB Combination) 2
cell(s)
via
a macro? If yes, kindly provide a sample.

How can I get a list of color index of pre-defined colors for their
application on cell(s)?

Thanx!






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Powerpoint / Excel: custom pp RGB color doesn't match identical Excelcustom RGB color mikewillnot Charts and Charting in Excel 1 February 26th 08 05:22 PM
nested color index within sumproduct George P Excel Worksheet Functions 2 June 13th 07 08:34 PM
Chart axes color index vs font color index [email protected] Charts and Charting in Excel 4 December 7th 06 04:05 PM
Public Function - Color Index carl Excel Worksheet Functions 3 April 7th 06 08:08 PM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM


All times are GMT +1. The time now is 11:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"