Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
San San is offline
external usenet poster
 
Posts: 14
Default CUstom color is not showing

Hai all,

$excel_app = new COM("Excel.Application");
$excel_app-SheetsInNewWorkbook=2;
$workbook = $excel_app-Workbooks-add();
$workbook-Colors[15]=hexdec("ABCDEF");

Im trying to assing color like the above code.But the custom colors are not
appearing for the cells. Its automatically converted to the 1-56 color
indexed and no error is showing.
Thanks in advance
San.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default CUstom color is not showing

Your code appears to be changing the definition of the 15th color in the
color pallet of 56 colors. If you have any cells that have their
interior.colorindex property set to 15, then they should take on the
appearance of your new color.


--
Regards,
Tom Ogilvy


"San" wrote:

Hai all,

$excel_app = new COM("Excel.Application");
$excel_app-SheetsInNewWorkbook=2;
$workbook = $excel_app-Workbooks-add();
$workbook-Colors[15]=hexdec("ABCDEF");

Im trying to assing color like the above code.But the custom colors are not
appearing for the cells. Its automatically converted to the 1-56 color
indexed and no error is showing.
Thanks in advance
San.


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
Custom properties not showing the value when set programmatically Jan Petter Excel Programming 11 July 3rd 06 08:23 AM
Showing custom toolbars on one W/S only JRD Excel Discussion (Misc queries) 3 December 1st 05 05:03 PM
Showing criteria in custom filter Rob Excel Programming 2 August 6th 05 04:47 PM
Color Formatted Cells not showing color jilary2 Excel Worksheet Functions 1 February 22nd 05 07:31 PM


All times are GMT +1. The time now is 12:32 AM.

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"