Assign custom color code

  • Thread starter Thread starter XP
  • Start date Start date
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.
 
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)
 
Back
Top