Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2008

Tip: Looking for answers? Try searching our database.

Store custom color on the palette

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
XP - 07 Mar 2008 19:33 GMT
Using Office 2003 and Windows XP;

In Excel I use the following code to store a custom mixed color on the color
palette:

ActiveWorkbook.Colors(56) = RGB(163, 193, 173)

What is the equivalent code in MS-Word?

Thanks in advance.
Helmut Weber - 08 Mar 2008 00:27 GMT
Maybe that:

Option Explicit
Dim MyColor(1 To 100) As Long
' ----------------------------
Sub Demo00()
MyColor(56) = RGB(163, 193, 173)
End Sub
' ----------------------------
Sub Demo01()
Selection.Font.Color = MyColor(56)
End Sub

--

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Vista Small Business, Office XP
Tony Jollans - 08 Mar 2008 18:12 GMT
There is no equivalent. Word does not have a colour palette.

Well, that's not strictly true, but it doesn't have one you can use in the
same way as in Excel 2003.

Signature

Enjoy,
Tony

> Maybe that:
>
[quoted text clipped - 16 lines]
>
> Vista Small Business, Office XP
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.