Hi Ed:
Sorry: I wasn't clear. I can't get the name of that dialog because it does
not have a name in VBA. It is not a member of the VBA "Dialogs" collection.
I think you might find that it is an Apple system dialog. Microsoft Office
tries to be a good Mac citizen where possible -- it will always call a
system dialog in preference to creating its own if there is one that will do
the job.
You could try iterating the Dialogs collection, Showing each one in turn,
until you come to the one you want, and then get hold of its number.
To the best of my knowledge, the "Colour Palettes" you are looking at are
actually "Microsoft Office Themes". As far as I know, in Office 2004 they
are stored in the Normal template. But I am guessing.
In Office 2008, there is a folder for them. See /Applications/Microsoft
Office 2008/Office/Media/Templates/Office Themes/
I don't think there is any way short of hacking some C++ to reach them in
Office 2004.
Sorry: I just don't know.
Cheers
Hi John
I can, of course, hardcode a specific color in a macro for the
highlight/background pattern color. I really wanted however to be able to
allow the end User to select a color from the same large range of colors
available to the User as is available for the foreground color. It looked to
me as if the dialog window that opens upon pressing the "More Colors" button
is the main selection mechanism in Word to select from the full range of
colors. If I could call that dialog directly, that would be great.
I see this dialog window in both Word X and Word 2004, but can't find it
listed in the list of items in the "Built-in Dialog Windows" help in VB. If
you could pass along to me the name of this "Colors" dialog window, that
would be greatly appreciated, or tell me how to find it's name in VB help.
Related to this "Colors" dialog window, I noticed that the 3rd menu item
in the "Colors", called "Color Palattes", appears to allow the User to add
new colors to any of several lists of pre-defined colors. Are the colors in
these pre-defined lists of Colors correspond to the files in the folder
Office/Border Art? Is there any MS docs on the format of these color files?
I certainly would like to know how to add such files to my Office
installation. Any tips as to how to add color files to Office are also
greatly appreciated!
Many thanks!
Ed
--
Don't wait for your answer, click here:
http://www.word.mvps.org/
Please reply in the group. Please do NOT email me unless I ask you to.
John McGhie, Microsoft MVP, Word and Word:Mac
Sydney, Australia. mailto:
[email protected]