Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default How To: Get the index value of the selected color

Hi,
If a use the following code to show the Colour Palette
dialog box, how to I retrieve the selected colour index
value. Application.Dialogs(xlDialogColorPalette).Show

TIA
K
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How To: Get the index value of the selected color

This is the same as selecting it from the menu - it doesn't return the color
selected - it applies it to the activecell. You would have to read the
value of the interior.ColorIndex of the activecell after the user makes a
selection and it is applied. You cant use this dialog as a general interface
for having the user select a color.

--
Regards,
Tom Ogilvy

"KM" wrote in message
...
Hi,
If a use the following code to show the Colour Palette
dialog box, how to I retrieve the selected colour index
value. Application.Dialogs(xlDialogColorPalette).Show

TIA
K



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
Custom Color/Color Index FARAZ QURESHI Excel Discussion (Misc queries) 4 February 29th 08 05:19 PM
Color of selected cells [email protected] Excel Discussion (Misc queries) 0 December 9th 07 09:27 PM
Color of selected row GKW in GA Excel Discussion (Misc queries) 2 June 22nd 07 08:41 PM
Chart axes color index vs font color index [email protected] Charts and Charting in Excel 4 December 7th 06 04:05 PM
HELP need index of the actual selected point Schlupp Charts and Charting in Excel 4 August 11th 05 06:56 AM


All times are GMT +1. The time now is 05:00 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"