PC Review


Reply
Thread Tools Rate Thread

Accessing Color palette values

 
 
jminu
Guest
Posts: n/a
 
      16th Sep 2004
Hi,
Objective
*******
I'm developing an utility where the user is given a option to select
color. Then certain cells in the excel will be filled with that color
I have a user form where the user chooses the color. I'm usin
CommonDialog.ShowColor to show the dialog.

Problem
******
CommonDialog.Color returns a long. And
Cell1.Interior.ColorIndex=CommonDialog.Color throws an error. I thin
this is due to the fact that ColorIndex can take values on upto 5
only.

Is there a workaround or is there any way to achieve the objectiv
mentioned above

Thx
Min

--
Message posted from http://www.ExcelForum.com

 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      16th Sep 2004
Look at John's example

http://j-walk.com/ss/excel/tips/tip49.htm



--
Regards Ron de Bruin
http://www.rondebruin.nl


"jminu >" <<(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Hi,
> Objective
> *******
> I'm developing an utility where the user is given a option to select a
> color. Then certain cells in the excel will be filled with that color.
> I have a user form where the user chooses the color. I'm using
> CommonDialog.ShowColor to show the dialog.
>
> Problem
> ******
> CommonDialog.Color returns a long. And
> Cell1.Interior.ColorIndex=CommonDialog.Color throws an error. I think
> this is due to the fact that ColorIndex can take values on upto 56
> only.
>
> Is there a workaround or is there any way to achieve the objective
> mentioned above
>
> Thx
> Minu
>
>
> ---
> Message posted from http://www.ExcelForum.com/
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I change the 2007 color palette to the 2003 color palette linnius Microsoft Powerpoint 1 25th Jan 2009 03:17 AM
Bring up Color Palette to select color =?Utf-8?B?cG9rZGJ6?= Microsoft Excel Misc 4 6th Aug 2007 10:13 PM
Color Palette, color disappears =?Utf-8?B?RW1pbA==?= Microsoft Excel Misc 2 29th Nov 2005 05:07 AM
how can i create a color dialog box or color palette in asp.net ap =?Utf-8?B?ZW5nX25haHN3YQ==?= Microsoft C# .NET 1 20th Dec 2004 12:26 PM
how to change a color in a color palette in ms access milo Microsoft Access 0 23rd Jan 2004 05:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:15 PM.