Assign custom color code

X

XP

Using Office 2003 and Windows XP;

In MS-Excel, I can use a function like the one below to assign a new color
to a certain position on the color palette:

ActiveWorkbook.Colors(52) = RGB(222, 202, 202)

How does one accomplish this in MS-Access using VBA or what is the
equivalent code in Access?

Thanks much in advance.
 
M

Marshall Barton

XP said:
Using Office 2003 and Windows XP;

In MS-Excel, I can use a function like the one below to assign a new color
to a certain position on the color palette:

ActiveWorkbook.Colors(52) = RGB(222, 202, 202)

How does one accomplish this in MS-Access using VBA or what is the
equivalent code in Access?


AFAIK. Access doesn't use pallets (unless you consider
creating a custom color in a color picker). Just specify a
color number (as obtained from the RGB function) or a
Windows color code (as found in Help - System Colors)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top