Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to access the 'color pick window'?
I am using Excel 97.
I would like to know how to use programmatically the window that opens when I click 'Fill Color' or 'Font Color' on the Format toolbar. I need to know how to open it, and how it returns the color the user chose. This gives a color window, but not the one I want: Dim x As CommonDialog Set x = New CommonDialog x.ShowColor Any ideas? Sincerely, Jan Nordgreen |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to access the 'color pick window'?
application.Dialogs(xlDialogFontProperties).SHOW
application.Dialogs(xlDialogColorPalette).Show are possibilities. Probably the second. The act the same as if you showed them from the menu - they have a specific purpose and you can not use them for any other. In otherwords, you can't use the second one for anything other than setting the color to the selection - so the selection must be something that will work with this dialog, or you get an error. the dialog itself only returns true or false. False if the user clicks cancel, true otherwise. If you want to know what color was selected, you will have to examine the selected object. -- Regards, Tom Ogilvy Jan Nordgreen wrote in message ... I am using Excel 97. I would like to know how to use programmatically the window that opens when I click 'Fill Color' or 'Font Color' on the Format toolbar. I need to know how to open it, and how it returns the color the user chose. This gives a color window, but not the one I want: Dim x As CommonDialog Set x = New CommonDialog x.ShowColor Any ideas? Sincerely, Jan Nordgreen |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Help to pick constant color to a value in a Pie Chart? | Charts and Charting in Excel | |||
Shading cells - how to pick a slight/different shade of a color | New Users to Excel | |||
How I auto fill a cell patern or color based on a pick list? | Excel Discussion (Misc queries) | |||
I need to use a formula to pick up a value by the font color? | Excel Discussion (Misc queries) | |||
Open Access Database under and Excel window using a Macro | Excel Worksheet Functions |