Use a Custom Color for the Background or Foreground of a Control

  1. In the Forms Designer, right-click the control, and then click Advanced Properties.

  2. Click the BackColor or ForeColor property.

  3. In the top-right corner of the Properties dialog box, click the ellipsis button (...).

  4. Do one of the following:

    • Use an existing custom color by clicking it in the custom color palette.
  • Create a new custom color by clicking Define Custom Colors. Click the color in the color spectrum that you want to start with. To change the Red, Green, Blue, and Lum (luminosity) settings, slide the bar above the settings up or down. To change Hue and Saturation, type different settings. Add the new color to the palette by clicking Add to Custom Colors.
  1. To use the custom color for the current control, click it in the Custom colors palette, and then click OK.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.