Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Color Index and RGB Color

Does anyone know how to convert a integer value colorindex to its RGB color
value in VBA?
Thanks!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Color Index and RGB Color

activecell.colorIndex = 6
msgbox activecell.Color


--
Regards,
Tom Ogilvy

"X-Men" wrote in message
...
Does anyone know how to convert a integer value colorindex to its RGB

color
value in VBA?
Thanks!




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Color Index and RGB Color

A better answer

msgbox activeworkbook.Colors(39)

where 39 is the colorindex.

--
Regards,
Tom Ogilvy


"X-Men" wrote in message
...
Does anyone know how to convert a integer value colorindex to its RGB

color
value in VBA?
Thanks!




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
Help in color index function [email protected] Excel Worksheet Functions 2 September 19th 08 03:52 AM
Color Index Code, is there any thing like that? wilchong via OfficeKB.com New Users to Excel 3 May 22nd 08 01:56 PM
Custom Color/Color Index FARAZ QURESHI Excel Discussion (Misc queries) 4 February 29th 08 05:19 PM
Chart axes color index vs font color index [email protected] Charts and Charting in Excel 4 December 7th 06 04:05 PM
How To: Get the index value of the selected color KM[_2_] Excel Programming 1 December 10th 03 04:42 PM


All times are GMT +1. The time now is 06:07 PM.

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

About Us

"It's about Microsoft Excel"