Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Display color (or Format Cells) dialog in a macro?

If I use the following in a macro, how can I get the selected color after the
user clicks the OK button? Is there another way to display a color selection
dialog?

Or, better yet, how can I display the 'Format Cells' dialog in a macro?


Dim bResult As Boolean
bResult = Application.Dialogs(xlDialogColorPalette).Show


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Display color (or Format Cells) dialog in a macro?

The selected cell will be formatted when the user makes a selection from the
dialog.

So you can read the color from the cell.

Or, better yet, how can I display the 'Format Cells' dialog in a macro?

application.CommandBars("Format").Controls(C&ells. ..").Execute




--
Regards,
Tom Ogilvy

"Mick" wrote in message
...
If I use the following in a macro, how can I get the selected color after

the
user clicks the OK button? Is there another way to display a color

selection
dialog?

Or, better yet, how can I display the 'Format Cells' dialog in a macro?


Dim bResult As Boolean
bResult = Application.Dialogs(xlDialogColorPalette).Show




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
No Format Cells dialog box Fluke[_2_] Excel Discussion (Misc queries) 1 January 23rd 08 03:46 PM
Format Cells Dialog Box EYREI Excel Discussion (Misc queries) 1 October 20th 05 01:52 AM
Excel 2003 will not display color fonts or color fill cells DaveC Excel Worksheet Functions 1 April 11th 05 04:38 PM
When I select "format cells", the format dialog box does not disp. Andy S. Excel Worksheet Functions 2 November 23rd 04 03:49 AM
Format Cells dialog box Ryan Poth[_2_] Excel Programming 0 September 17th 03 12:45 AM


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