Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Value From xlDialog

Quoting from Tom Ogilvy:
"The dialog is the same as selecting this from the menu - it performs a
specific action which is to color the cells that are selected. It isn't a
general purpose dialog that you can use as a color picker. So the answer is
no as far as any builtin in capability you can employ to do this."

However, If you color the selection, you can get that information from the
selection...
'/=======================================/
Sub test()
MsgBox "Background color: " & Selection.Interior.ColorIndex
MsgBox "Font color: " & Selection.Font.ColorIndex
End Sub
'/=======================================/

HTH,
--
Gary Brown

Please rate this posting if it is helpful to you.

"Brad" wrote:

Thanks for taking the time to read my question.

How do I get the value of the selected option when I use this?

- - - - - - - -
Application.Dialogs(xlDialogPatterns).Show
- - - - - - - -

Say I choose red, what it that value?

Thanks,

Brad

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
Append code to a xlDialog Kent Smith Excel Programming 1 February 23rd 05 02:24 AM
XLDialog Printer Setup Ron Crapo Excel Programming 2 August 27th 04 05:40 PM
xldialog Philipp Oberleitner[_2_] Excel Programming 5 July 9th 04 06:39 PM


All times are GMT +1. The time now is 05:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"