<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Textbox background color to aci color in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/textbox-background-color-to-aci-color/m-p/314051#M58705</link>
    <description>Russ, if you're using acad 2004 there is a new TrueColor object that you can&lt;BR /&gt;
use to do this conversion for you.&lt;BR /&gt;
-- &lt;BR /&gt;
Bobby C. Jones&lt;BR /&gt;
www.AcadX.com&lt;BR /&gt;
&lt;BR /&gt;
"Russ Green" &lt;RUSS&gt; wrote in message&lt;BR /&gt;
news:D1F8BE90D4633C62355DEE34B7E729A0@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I have a text box on a form and I would like users to type in the color&lt;BR /&gt;
&amp;gt; number and have the backgound color of the textbox change to display this&lt;BR /&gt;
&amp;gt; color.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Any ideas?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Russ&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/RUSS&gt;</description>
    <pubDate>Mon, 08 Dec 2003 09:08:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2003-12-08T09:08:52Z</dc:date>
    <item>
      <title>Textbox background color to aci color</title>
      <link>https://forums.autodesk.com/t5/vba-forum/textbox-background-color-to-aci-color/m-p/314046#M58700</link>
      <description>I have a text box on a form and I would like users to type in the color&lt;BR /&gt;
number and have the backgound color of the textbox change to display this&lt;BR /&gt;
color.&lt;BR /&gt;
&lt;BR /&gt;
Any ideas?&lt;BR /&gt;
&lt;BR /&gt;
Russ</description>
      <pubDate>Sun, 07 Dec 2003 10:58:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/textbox-background-color-to-aci-color/m-p/314046#M58700</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-12-07T10:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Textbox background color to aci color</title>
      <link>https://forums.autodesk.com/t5/vba-forum/textbox-background-color-to-aci-color/m-p/314047#M58701</link>
      <description>Ok, well I kindo got it working excpet that the colours are 1 down the scale&lt;BR /&gt;
from what they should be. ie 0 = red, 1 = yellow, etc&lt;BR /&gt;
&lt;BR /&gt;
    Function ACIRed(ByRef ACI As Integer) As Integer&lt;BR /&gt;
        Dim Red As Object&lt;BR /&gt;
        Red = New Object() {1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0.65, 0.65,&lt;BR /&gt;
0.5, 0.5, 0.3, 0.3, 0.15, 0.15, 1, 1, 0.65, 0.65, 0.5, 0.5, 0.3, 0.3, 0.15,&lt;BR /&gt;
0.15, 1, 1, 0.65, 0.65, 0.5, 0.5, 0.3, 0.3, 0.15, 0.15, 1, 1, 0.65, 0.65,&lt;BR /&gt;
0.5, 0.5, 0.3, 0.3, 0.15, 0.15, 1, 1, 0.65, 0.65, 0.5, 0.5, 0.3, 0.3, 0.15,&lt;BR /&gt;
0.15, 0.75, 0.875, 0.4875, 0.56875, 0.375, 0.4375, 0.225, 0.2625, 0.1125,&lt;BR /&gt;
0.13125, 0.5, 0.75, 0.325, 0.4875, 0.25, 0.375, 0.15, 0.225, 0.075, 0.1125,&lt;BR /&gt;
0.25, 0.625, 0.1625, 0.40625, 0.125, 0.3125, 0.075, 0.1875, 0.0375, 0.09375,&lt;BR /&gt;
0, 0.5, 0, 0.325, 0, 0.25, 0, 0.15, 0, 0.075, 0, 0.5, 0, 0.325, 0, 0.25, 0,&lt;BR /&gt;
0.15, 0, 0.075, 0, 0.5, 0, 0.325, 0, 0.25, 0, 0.15, 0, 0.075, 0, 0.5, 0,&lt;BR /&gt;
0.325, 0, 0.25, 0, 0.15, 0, 0.075, 0, 0.5, 0, 0.325, 0, 0.25, 0, 0.15, 0,&lt;BR /&gt;
0.075, 0, 0.5, 0, 0.325, 0, 0.25, 0, 0.15, 0, 0.075, 0, 0.5, 0, 0.325, 0,&lt;BR /&gt;
0.25, 0, 0.15, 0, 0.075, 0, 0.5, 0, 0.325, 0, 0.25, 0, 0.15, 0, 0.075, 0,&lt;BR /&gt;
0.5, 0, 0.325, 0, 0.25, 0, 0.15, 0, 0.075, 0.25, 0.625, 0.1625, 0.40625,&lt;BR /&gt;
0.125, 0.3125, 0.075, 0.1875, 0.0375, 0.09375, 0.5, 0.75, 0.325, 0.4875,&lt;BR /&gt;
0.25, 0.375, 0.15, 0.225, 0.075, 0.1125, 0.75, 0.875, 0.4875, 0.56875,&lt;BR /&gt;
0.375, 0.4375, 0.225, 0.2625, 0.1125, 0.13125, 1, 1, 0.65, 0.65, 0.5, 0.5,&lt;BR /&gt;
0.3, 0.3, 0.15, 0.15, 1, 1, 0.65, 0.65, 0.5, 0.5, 0.3, 0.3, 0.15, 0.15, 1,&lt;BR /&gt;
1, 0.65, 0.65, 0.5, 0.5, 0.3, 0.3, 0.15, 0.15, 1, 1, 0.65, 0.65, 0.5, 0.5,&lt;BR /&gt;
0.3, 0.3, 0.15, 0.15, 0.33, 0.464, 0.598, 0.732, 0.866, 1}&lt;BR /&gt;
        Return Red(ACI) * 255&lt;BR /&gt;
    End Function&lt;BR /&gt;
&lt;BR /&gt;
    Function ACIBlue(ByRef ACI As Integer) As Integer&lt;BR /&gt;
        Dim Blue As Object&lt;BR /&gt;
        Blue = New Object() {0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0.5, 0, 0.325, 0,&lt;BR /&gt;
0.25, 0, 0.15, 0, 0.075, 0, 0.5, 0, 0.325, 0, 0.25, 0, 0.15, 0, 0.075, 0,&lt;BR /&gt;
0.5, 0, 0.325, 0, 0.25, 0, 0.15, 0, 0.075, 0, 0.5, 0, 0.325, 0, 0.25, 0,&lt;BR /&gt;
0.15, 0, 0.075, 0, 0.5, 0, 0.325, 0, 0.25, 0, 0.15, 0, 0.075, 0, 0.5, 0, 0.3&lt;BR /&gt;
25, 0, 0.25, 0, 0.15, 0, 0.075, 0, 0.5, 0, 0.325, 0, 0.25, 0, 0.15, 0,&lt;BR /&gt;
0.075, 0, 0.5, 0, 0.325, 0, 0.25, 0, 0.15, 0, 0.075, 0, 0.5, 0, 0.325, 0,&lt;BR /&gt;
0.25, 0, 0.15, 0, 0.075, 0.25, 0.625, 0.1625, 0.40625, 0.125, 0.3125, 0.075,&lt;BR /&gt;
0.1875, 0.0375, 0.09375, 0.5, 0.75, 0.325, 0.4875, 0.25, 0.375, 0.15, 0.225,&lt;BR /&gt;
0.075, 0.1125, 0.75, 0.875, 0.4875, 0.56875, 0.375, 0.4375, 0.225, 0.2625,&lt;BR /&gt;
0.1125, 0.13125, 1, 1, 0.65, 0.65, 0.5, 0.5, 0.3, 0.3, 0.15, 0.15, 1, 1,&lt;BR /&gt;
0.65, 0.65, 0.5, 0.5, 0.3, 0.3, 0.15, 0.15, 1, 1, 0.65, 65, 0.5, 0.5, 0.3,&lt;BR /&gt;
0.3, 0.15, 0.15, 1, 1, 0.65, 0.65, 0.5, 0.5, 0.3, 0.3, 0.15, 0.15, 1, 1,&lt;BR /&gt;
0.65, 0.65, 0.5, 0.5, 0.3, 0.3, 0.15, 0.15, 1, 1, 0.65, 0.65, 0.5, 0.5, 0.3,&lt;BR /&gt;
0.3, 0.15, 0.15, 1, 1, 0.65, 0.65, 0.5, 0.5, 0.3, 0.3, 0.15, 0.15, 1, 1,&lt;BR /&gt;
0.65, 0.65, 0.5, 0.5, 0.3, 0.3, 0.15, 0.15, 1, 1, 0.65, 0.65, 0.5, 0.5, 0.3,&lt;BR /&gt;
0.3, 0.15, 0.15, 0.75, 0.875, 0.4875, 0.56875, 0.375, 0.4375, 0.225, 0.2625,&lt;BR /&gt;
0.1125, 0.13125, 0.5, 0.75, 0.325, 0.4875, 0.25, 0.375, 0.15, 0.225, 0.075,&lt;BR /&gt;
0.1125, 0.25, 0.625, 0.1625, 0.40625, 0.125, 0.3125, 0.075, 0.1875, 0.0375,&lt;BR /&gt;
0.09375, 0.33, 0.464, 0.598, 0.732, 0.866, 1}&lt;BR /&gt;
        Return Blue(ACI) * 255&lt;BR /&gt;
    End Function&lt;BR /&gt;
&lt;BR /&gt;
    Function ACIGreen(ByRef ACI As Integer) As Integer&lt;BR /&gt;
        Dim Green As Object&lt;BR /&gt;
        Green = New Object() {0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0.5, 0, 0.325,&lt;BR /&gt;
0, 0.25, 0, 0.15, 0, 0.075, 0.25, 0.625, 0.1625, 0.40625, 0.125, 0.3125,&lt;BR /&gt;
0.075, 0.1875, 0.0375, 0.09375, 0.5, 0.75, 0.325, 0.4875, 0.25, 0.375, 0.15,&lt;BR /&gt;
0.225, 0.075, 0.1125, 0.75, 0.875, 0.4875, 0.56875, 0.375, 0.4375, 0.225,&lt;BR /&gt;
0.2625, 0.1125, 0.13125, 1, 1, 0.65, 0.65, 0.5, 0.5, 0.3, 0.3, 0.15, 0.15,&lt;BR /&gt;
1, 1, 0.65, 0.65, 0.5, 0.5, 0.3, 0.3, 0.15, 0.15, 1, 1, 0.65, 0.65, 0.5,&lt;BR /&gt;
0.5, 0.3, 0.3, 0.15, 0.15, 1, 1, 0.65, 0.65, 0.5, 0.5, 0.3, 0.3, 0.15, 0.15,&lt;BR /&gt;
1, 1, 0.65, 0.65, 0.5, 0.5, 0.3, 0.3, 0.15, 0.15, 1, 1, 0.65, 0.65, 0.5,&lt;BR /&gt;
0.5, 0.3, 0.3, 0.15, 0.15, 1, 1, 0.65, 0.65, 0.5, 0.5, 0.3, 0.3, 0.15, 0.15,&lt;BR /&gt;
1, 1, 0.65, 0.65, 0.5, 0.5, 0.3, 0.3, 0.15, 0.15, 1, 1, 0.65, 0.65, 0.5,&lt;BR /&gt;
0.5, 0.3, 0.3, 0.15, 0.15, 0.75, 0.875, 0.4875, 0.56875, 0.375, 0.4375,&lt;BR /&gt;
0.225, 0.2625, 0.1125, 0.13125, 0.5, 0.75, 0.325, 0.4875, 0.25, 0.375, 0.15,&lt;BR /&gt;
0.225, 0.075, 0.1125, 0.25, 0.625, 0.1625, 0.40625, 0.125, 0.3125, 0.075,&lt;BR /&gt;
0.1875, 0.0375, 0.09375, 0, 0.5, 0, 0.325, 0, 0.25, 0, 0.15, 0, 0.075, 0,&lt;BR /&gt;
0.5, 0, 0.325, 0, 0.25, 0, 0.15, 0, 0.075, 0, 0.5, 0, 0.325, 0, 0.25, 0,&lt;BR /&gt;
0.15, 0, 0.075, 0, 0.5, 0, 0.325, 0, 0.25, 0, 0.15, 0, 0.075, 0, 0.5, 0,&lt;BR /&gt;
0.325, 0, 0.25, 0, 0.15, 0, 0.075, 0, 0.5, 0, 0.325, 0, 0.25, 0, 0.15, 0,&lt;BR /&gt;
0.075, 0, 0.5, 0, 0.325, 0, 0.25, 0, 0.15, 0, 0.075, 0, 0.5, 0, 0.325, 0,&lt;BR /&gt;
0.25, 0, 0.15, 0, 0.075, 0.33, 0.464, 0.598, 0.732, 0.866, 1}&lt;BR /&gt;
        Return Green(ACI) * 255&lt;BR /&gt;
    End Function&lt;BR /&gt;
&lt;BR /&gt;
    Private Sub nudACI_ValueChanged(ByVal sender As System.Object, ByVal e&lt;BR /&gt;
As System.EventArgs) Handles nudACI.ValueChanged&lt;BR /&gt;
        On Error Resume Next&lt;BR /&gt;
&lt;BR /&gt;
        Me.nudACI.BackColor = Color.FromArgb(255, _&lt;BR /&gt;
        ACIRed(CInt(Me.nudACI.Value)), _&lt;BR /&gt;
        ACIGreen(CInt(Me.nudACI.Value)), _&lt;BR /&gt;
        ACIBlue(CInt(Me.nudACI.Value)))&lt;BR /&gt;
    End Sub&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Russ Green" &lt;RUSS&gt; wrote in message&lt;BR /&gt;
news:D1F8BE90D4633C62355DEE34B7E729A0@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I have a text box on a form and I would like users to type in the color&lt;BR /&gt;
&amp;gt; number and have the backgound color of the textbox change to display this&lt;BR /&gt;
&amp;gt; color.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Any ideas?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Russ&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/RUSS&gt;</description>
      <pubDate>Sun, 07 Dec 2003 10:58:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/textbox-background-color-to-aci-color/m-p/314047#M58701</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-12-07T10:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Textbox background color to aci color</title>
      <link>https://forums.autodesk.com/t5/vba-forum/textbox-background-color-to-aci-color/m-p/314048#M58702</link>
      <description>Russ,&lt;BR /&gt;
This code along with the included AcadToRGB function posted 12/23/2002 by&lt;BR /&gt;
Kevin Terry does what you want.&lt;BR /&gt;
&lt;BR /&gt;
Private Sub TextBox1_Change()&lt;BR /&gt;
On Error Resume Next&lt;BR /&gt;
TextBox1.BackColor = AcadToRGB(TextBox1.Value)&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
' . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&lt;BR /&gt;
. . . . . . . . . . .&lt;BR /&gt;
'&lt;BR /&gt;
'Returns RGB equivalent to passed acad color index (ACI)&lt;BR /&gt;
'&lt;BR /&gt;
Public Function AcadToRGB(ByVal Col As Long) As Variant&lt;BR /&gt;
&lt;BR /&gt;
    Dim R As Long, G As Long, B As Long&lt;BR /&gt;
&lt;BR /&gt;
    Select Case Col&lt;BR /&gt;
        Case 1: AcadToRGB = 255: Exit Function&lt;BR /&gt;
        Case 2: AcadToRGB = 65535: Exit Function&lt;BR /&gt;
        Case 3: AcadToRGB = 65280: Exit Function&lt;BR /&gt;
        Case 4: AcadToRGB = 16776960: Exit Function&lt;BR /&gt;
        Case 5: AcadToRGB = 16711680: Exit Function&lt;BR /&gt;
        Case 6: AcadToRGB = 16711935: Exit Function&lt;BR /&gt;
        Case 7: AcadToRGB = 16777215: Exit Function&lt;BR /&gt;
        Case 8: AcadToRGB = 8355711: Exit Function&lt;BR /&gt;
        Case 9: AcadToRGB = 12566463: Exit Function&lt;BR /&gt;
        Case 10: AcadToRGB = 255: Exit Function&lt;BR /&gt;
        Case 11: AcadToRGB = 8355839: Exit Function&lt;BR /&gt;
        Case 12: AcadToRGB = 207: Exit Function&lt;BR /&gt;
        Case 13: AcadToRGB = 6316239: Exit Function&lt;BR /&gt;
        Case 14: AcadToRGB = 144: Exit Function&lt;BR /&gt;
        Case 15: AcadToRGB = 5197712: Exit Function&lt;BR /&gt;
        Case 16: AcadToRGB = 127: Exit Function&lt;BR /&gt;
        Case 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114,&lt;BR /&gt;
116, 118, _&lt;BR /&gt;
            120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142, 144,&lt;BR /&gt;
146, 148, _&lt;BR /&gt;
            150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172, 174,&lt;BR /&gt;
176, 178: R = 0&lt;BR /&gt;
        Case 88, 188: R = 15&lt;BR /&gt;
        Case 86, 186: R = 31&lt;BR /&gt;
        Case 78, 84, 99, 109, 119, 129, 139, 149, 159, 169, 179, 184, 198: R&lt;BR /&gt;
= 32&lt;BR /&gt;
        Case 82, 89, 182, 189, 250: R = 47&lt;BR /&gt;
        Case 68, 79, 199, 208: R = 48&lt;BR /&gt;
        Case 69, 76, 80, 97, 107, 117, 127, 137, 147, 157, 167, 177, 180,&lt;BR /&gt;
196, 209: R = 63&lt;BR /&gt;
        Case 18, 19, 28, 29, 38, 39, 48, 49, 58, 59, 74, 87, 95, 105, 115,&lt;BR /&gt;
125, 135, _&lt;BR /&gt;
            145, 155, 165, 175, 187, 194, 218, 219, 228, 229, 238, 239, 248,&lt;BR /&gt;
249: R = 79&lt;BR /&gt;
        Case 66, 77, 185, 197, 206: R = 95&lt;BR /&gt;
        Case 72, 85, 93, 103, 113, 123, 133, 143, 153, 163, 173, 192: R = 96&lt;BR /&gt;
        Case 64, 67, 75, 195, 204, 207: R = 111&lt;BR /&gt;
        Case 17, 26, 27, 36, 37, 46, 47, 56, 57, 70, 83, 91, 101, 111, 121,&lt;BR /&gt;
131, _&lt;BR /&gt;
            141, 151, 161, 171, 183, 190, 216, 217, 226, 227, 236, 237, 246,&lt;BR /&gt;
247: R = 127&lt;BR /&gt;
        Case 65, 205, 252: R = 128&lt;BR /&gt;
        Case 24, 25, 34, 35, 44, 45, 54, 55, 62, 73, 193, 202, 214, 215,&lt;BR /&gt;
224, 225, _&lt;BR /&gt;
            234, 235, 244, 245: R = 144&lt;BR /&gt;
        Case 81, 181: R = 159&lt;BR /&gt;
        Case 63, 203, 253: R = 175&lt;BR /&gt;
        Case 60, 71, 191, 200: R = 191&lt;BR /&gt;
        Case 22, 23, 32, 33, 42, 43, 52, 53, 212, 213, 222, 223, 232, 233,&lt;BR /&gt;
242, 243: R = 207&lt;BR /&gt;
        Case 61, 201: R = 223&lt;BR /&gt;
        Case 20, 21, 30, 31, 40, 41, 50, 51, 210, 211, 220, 221, 230, 231,&lt;BR /&gt;
240, 241, 255: R = 255&lt;BR /&gt;
        Case 251: R = 80: G = 80: B = 80&lt;BR /&gt;
        Case 254: R = 208: G = 208: B = 208&lt;BR /&gt;
    End Select&lt;BR /&gt;
&lt;BR /&gt;
    Select Case Col&lt;BR /&gt;
        Case 18, 170, 172, 174, 176, 178, 180, 182, 184, 186, 188, 190, 192,&lt;BR /&gt;
194, _&lt;BR /&gt;
            196, 198, 200, 202, 204, 206, 208, 210, 212, 214, 216, 218, 220,&lt;BR /&gt;
222, 224, _&lt;BR /&gt;
            226, 228, 230, 232, 234, 236, 238, 240, 242, 244, 246, 248: G =&lt;BR /&gt;
0&lt;BR /&gt;
        Case 28, 168: G = 15&lt;BR /&gt;
        Case 26, 166: G = 31&lt;BR /&gt;
        Case 19, 24, 38, 158, 164, 179, 189, 199, 209, 219, 229, 239, 249: G&lt;BR /&gt;
= 32&lt;BR /&gt;
        Case 22, 29, 162, 169, 250: G = 47&lt;BR /&gt;
        Case 39, 48, 148, 159: G = 48&lt;BR /&gt;
        Case 17, 20, 36, 49, 149, 156, 160, 177, 187, 197, 207, 217, 227,&lt;BR /&gt;
237, 247: G = 63&lt;BR /&gt;
        Case 18, 27, 34, 58, 59, 68, 69, 78, 79, 88, 89, 98, 99, 108, 109,&lt;BR /&gt;
118, 119, _&lt;BR /&gt;
            128, 129, 138, 139, 154, 167, 175, 185, 195, 205, 215, 225, 235,&lt;BR /&gt;
245: G = 79&lt;BR /&gt;
        Case 152: G = 86&lt;BR /&gt;
        Case 25, 37, 46, 146, 157, 165: G = 95&lt;BR /&gt;
        Case 32, 173, 183, 193, 203, 213, 223, 233, 243: G = 96&lt;BR /&gt;
        Case 35, 44, 47, 144, 147, 155: G = 111&lt;BR /&gt;
        Case 23, 30, 56, 57, 66, 67, 76, 77, 86, 87, 96, 97, 106, 107, 116,&lt;BR /&gt;
117, _&lt;BR /&gt;
            126, 127, 136, 137, 150, 163, 171, 181, 191, 201, 211, 221, 231,&lt;BR /&gt;
241: G = 127&lt;BR /&gt;
        Case 45, 145, 252: G = 128&lt;BR /&gt;
        Case 33, 42, 54, 55, 64, 65, 74, 75, 84, 85, 94, 95, 104, 105, 114,&lt;BR /&gt;
115, _&lt;BR /&gt;
            124, 125, 134, 135, 142, 153: G = 144&lt;BR /&gt;
        Case 21, 161: G = 159&lt;BR /&gt;
        Case 43, 143, 253: G = 175&lt;BR /&gt;
        Case 31, 40, 140, 151: G = 191&lt;BR /&gt;
        Case 52, 53, 62, 63, 72, 73, 82, 83, 92, 93, 102, 103, 112, 113,&lt;BR /&gt;
122, 123, _&lt;BR /&gt;
            132, 133: G = 207&lt;BR /&gt;
        Case 41, 141: G = 223&lt;BR /&gt;
        Case 50, 51, 60, 61, 70, 71, 80, 81, 90, 91, 100, 101, 110, 111,&lt;BR /&gt;
120, 121, _&lt;BR /&gt;
            130, 131, 255: G = 255&lt;BR /&gt;
    End Select&lt;BR /&gt;
&lt;BR /&gt;
    Select Case Col&lt;BR /&gt;
        Case 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48,&lt;BR /&gt;
50, 52, _&lt;BR /&gt;
            54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84,&lt;BR /&gt;
86, 88, 90, _&lt;BR /&gt;
            92, 94, 96, 98: B = 0&lt;BR /&gt;
        Case 108, 248: B = 15&lt;BR /&gt;
        Case 106, 246: B = 31&lt;BR /&gt;
        Case 19, 29, 39, 49, 59, 69, 79, 89, 99, 104, 118, 238, 244: B = 32&lt;BR /&gt;
        Case 102, 109, 242, 249, 250: B = 47&lt;BR /&gt;
        Case 119, 128, 228, 239: B = 48&lt;BR /&gt;
        Case 17, 27, 37, 47, 57, 67, 77, 87, 97, 100, 116, 129, 229, 236,&lt;BR /&gt;
240: B = 63&lt;BR /&gt;
        Case 25, 35, 45, 55, 65, 75, 85, 95, 107, 114, 138, 139, 148, 149,&lt;BR /&gt;
158, 159, _&lt;BR /&gt;
            168, 169, 178, 179, 188, 189, 198, 199, 208, 209, 218, 219, 234,&lt;BR /&gt;
247: B = 79&lt;BR /&gt;
        Case 105, 117, 126, 226, 237, 245: B = 95&lt;BR /&gt;
        Case 23, 33, 43, 53, 63, 73, 83, 93, 112, 232: B = 96&lt;BR /&gt;
        Case 115, 124, 127, 224, 227, 235: B = 111&lt;BR /&gt;
        Case 21, 31, 41, 51, 61, 71, 81, 91, 103, 110, 136, 137, 146, 147,&lt;BR /&gt;
156, 157, _&lt;BR /&gt;
            166, 167, 176, 177, 186, 187, 196, 197, 206, 207, 216, 217, 230,&lt;BR /&gt;
243: B = 127&lt;BR /&gt;
        Case 125, 225, 252: B = 128&lt;BR /&gt;
        Case 113, 122, 134, 135, 144, 145, 154, 155, 164, 165, 174, 175,&lt;BR /&gt;
184, 185, _&lt;BR /&gt;
            194, 195, 204, 205, 214, 215, 222, 233: B = 144&lt;BR /&gt;
        Case 101, 241: B = 159&lt;BR /&gt;
        Case 123, 223, 253: G = 175&lt;BR /&gt;
        Case 111, 120, 220, 231: B = 191&lt;BR /&gt;
        Case 132, 133, 142, 143, 152, 153, 162, 163, 172, 173, 182, 183,&lt;BR /&gt;
192, 193, _&lt;BR /&gt;
            202, 203, 212, 213: B = 207&lt;BR /&gt;
        Case 121: B = 223&lt;BR /&gt;
        Case 130, 131, 140, 141, 150, 151, 160, 161, 170, 171, 180, 181,&lt;BR /&gt;
190, 191, _&lt;BR /&gt;
            200, 201, 210, 211, 221, 255: B = 255&lt;BR /&gt;
    End Select&lt;BR /&gt;
&lt;BR /&gt;
    AcadToRGB = RGB(R, G, B)&lt;BR /&gt;
&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Russ Green" &lt;RUSS&gt; wrote in message&lt;BR /&gt;
news:D1F8BE90D4633C62355DEE34B7E729A0@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I have a text box on a form and I would like users to type in the color&lt;BR /&gt;
&amp;gt; number and have the backgound color of the textbox change to display this&lt;BR /&gt;
&amp;gt; color.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Any ideas?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Russ&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/RUSS&gt;</description>
      <pubDate>Sun, 07 Dec 2003 12:51:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/textbox-background-color-to-aci-color/m-p/314048#M58702</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-12-07T12:51:52Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/textbox-background-color-to-aci-color/m-p/314049#M58703</link>
      <description>Thanks&lt;BR /&gt;
&lt;BR /&gt;
In VB.NET to use RGB you must do this...&lt;BR /&gt;
&lt;BR /&gt;
Private Sub nudACI_ValueChanged(ByVal sender As System.Object, _&lt;BR /&gt;
ByVal e As System.EventArgs) Handles nudACI.ValueChanged&lt;BR /&gt;
&lt;BR /&gt;
On Error Resume Next&lt;BR /&gt;
&lt;BR /&gt;
Me.nudACI.BackColor = System.Drawing.ColorTranslator.FromOle _&lt;BR /&gt;
(CInt(AcadToRgb(CInt(Me.nudACI.Value))))&lt;BR /&gt;
&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Russ&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Jeff Mishler" &lt;MIFF&gt; wrote in message&lt;BR /&gt;
news:DAA9327D2B2525795B9E4CE00585AB71@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Russ,&lt;BR /&gt;
&amp;gt; This code along with the included AcadToRGB function posted 12/23/2002 by&lt;BR /&gt;
&amp;gt; Kevin Terry does what you want.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Private Sub TextBox1_Change()&lt;BR /&gt;
&amp;gt; On Error Resume Next&lt;BR /&gt;
&amp;gt; TextBox1.BackColor = AcadToRGB(TextBox1.Value)&lt;BR /&gt;
&amp;gt; End Sub&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; ' . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&lt;BR /&gt;
.&lt;BR /&gt;
&amp;gt; . . . . . . . . . . .&lt;BR /&gt;
&amp;gt; '&lt;BR /&gt;
&amp;gt; 'Returns RGB equivalent to passed acad color index (ACI)&lt;BR /&gt;
&amp;gt; '&lt;BR /&gt;
&amp;gt; Public Function AcadToRGB(ByVal Col As Long) As Variant&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     Dim R As Long, G As Long, B As Long&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     Select Case Col&lt;BR /&gt;
&amp;gt;         Case 1: AcadToRGB = 255: Exit Function&lt;BR /&gt;
&amp;gt;         Case 2: AcadToRGB = 65535: Exit Function&lt;BR /&gt;
&amp;gt;         Case 3: AcadToRGB = 65280: Exit Function&lt;BR /&gt;
&amp;gt;         Case 4: AcadToRGB = 16776960: Exit Function&lt;BR /&gt;
&amp;gt;         Case 5: AcadToRGB = 16711680: Exit Function&lt;BR /&gt;
&amp;gt;         Case 6: AcadToRGB = 16711935: Exit Function&lt;BR /&gt;
&amp;gt;         Case 7: AcadToRGB = 16777215: Exit Function&lt;BR /&gt;
&amp;gt;         Case 8: AcadToRGB = 8355711: Exit Function&lt;BR /&gt;
&amp;gt;         Case 9: AcadToRGB = 12566463: Exit Function&lt;BR /&gt;
&amp;gt;         Case 10: AcadToRGB = 255: Exit Function&lt;BR /&gt;
&amp;gt;         Case 11: AcadToRGB = 8355839: Exit Function&lt;BR /&gt;
&amp;gt;         Case 12: AcadToRGB = 207: Exit Function&lt;BR /&gt;
&amp;gt;         Case 13: AcadToRGB = 6316239: Exit Function&lt;BR /&gt;
&amp;gt;         Case 14: AcadToRGB = 144: Exit Function&lt;BR /&gt;
&amp;gt;         Case 15: AcadToRGB = 5197712: Exit Function&lt;BR /&gt;
&amp;gt;         Case 16: AcadToRGB = 127: Exit Function&lt;BR /&gt;
&amp;gt;         Case 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114,&lt;BR /&gt;
&amp;gt; 116, 118, _&lt;BR /&gt;
&amp;gt;             120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142,&lt;BR /&gt;
144,&lt;BR /&gt;
&amp;gt; 146, 148, _&lt;BR /&gt;
&amp;gt;             150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172,&lt;BR /&gt;
174,&lt;BR /&gt;
&amp;gt; 176, 178: R = 0&lt;BR /&gt;
&amp;gt;         Case 88, 188: R = 15&lt;BR /&gt;
&amp;gt;         Case 86, 186: R = 31&lt;BR /&gt;
&amp;gt;         Case 78, 84, 99, 109, 119, 129, 139, 149, 159, 169, 179, 184, 198:&lt;BR /&gt;
R&lt;BR /&gt;
&amp;gt; = 32&lt;BR /&gt;
&amp;gt;         Case 82, 89, 182, 189, 250: R = 47&lt;BR /&gt;
&amp;gt;         Case 68, 79, 199, 208: R = 48&lt;BR /&gt;
&amp;gt;         Case 69, 76, 80, 97, 107, 117, 127, 137, 147, 157, 167, 177, 180,&lt;BR /&gt;
&amp;gt; 196, 209: R = 63&lt;BR /&gt;
&amp;gt;         Case 18, 19, 28, 29, 38, 39, 48, 49, 58, 59, 74, 87, 95, 105, 115,&lt;BR /&gt;
&amp;gt; 125, 135, _&lt;BR /&gt;
&amp;gt;             145, 155, 165, 175, 187, 194, 218, 219, 228, 229, 238, 239,&lt;BR /&gt;
248,&lt;BR /&gt;
&amp;gt; 249: R = 79&lt;BR /&gt;
&amp;gt;         Case 66, 77, 185, 197, 206: R = 95&lt;BR /&gt;
&amp;gt;         Case 72, 85, 93, 103, 113, 123, 133, 143, 153, 163, 173, 192: R =&lt;BR /&gt;
96&lt;BR /&gt;
&amp;gt;         Case 64, 67, 75, 195, 204, 207: R = 111&lt;BR /&gt;
&amp;gt;         Case 17, 26, 27, 36, 37, 46, 47, 56, 57, 70, 83, 91, 101, 111,&lt;BR /&gt;
121,&lt;BR /&gt;
&amp;gt; 131, _&lt;BR /&gt;
&amp;gt;             141, 151, 161, 171, 183, 190, 216, 217, 226, 227, 236, 237,&lt;BR /&gt;
246,&lt;BR /&gt;
&amp;gt; 247: R = 127&lt;BR /&gt;
&amp;gt;         Case 65, 205, 252: R = 128&lt;BR /&gt;
&amp;gt;         Case 24, 25, 34, 35, 44, 45, 54, 55, 62, 73, 193, 202, 214, 215,&lt;BR /&gt;
&amp;gt; 224, 225, _&lt;BR /&gt;
&amp;gt;             234, 235, 244, 245: R = 144&lt;BR /&gt;
&amp;gt;         Case 81, 181: R = 159&lt;BR /&gt;
&amp;gt;         Case 63, 203, 253: R = 175&lt;BR /&gt;
&amp;gt;         Case 60, 71, 191, 200: R = 191&lt;BR /&gt;
&amp;gt;         Case 22, 23, 32, 33, 42, 43, 52, 53, 212, 213, 222, 223, 232, 233,&lt;BR /&gt;
&amp;gt; 242, 243: R = 207&lt;BR /&gt;
&amp;gt;         Case 61, 201: R = 223&lt;BR /&gt;
&amp;gt;         Case 20, 21, 30, 31, 40, 41, 50, 51, 210, 211, 220, 221, 230, 231,&lt;BR /&gt;
&amp;gt; 240, 241, 255: R = 255&lt;BR /&gt;
&amp;gt;         Case 251: R = 80: G = 80: B = 80&lt;BR /&gt;
&amp;gt;         Case 254: R = 208: G = 208: B = 208&lt;BR /&gt;
&amp;gt;     End Select&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     Select Case Col&lt;BR /&gt;
&amp;gt;         Case 18, 170, 172, 174, 176, 178, 180, 182, 184, 186, 188, 190,&lt;BR /&gt;
192,&lt;BR /&gt;
&amp;gt; 194, _&lt;BR /&gt;
&amp;gt;             196, 198, 200, 202, 204, 206, 208, 210, 212, 214, 216, 218,&lt;BR /&gt;
220,&lt;BR /&gt;
&amp;gt; 222, 224, _&lt;BR /&gt;
&amp;gt;             226, 228, 230, 232, 234, 236, 238, 240, 242, 244, 246, 248: G&lt;BR /&gt;
=&lt;BR /&gt;
&amp;gt; 0&lt;BR /&gt;
&amp;gt;         Case 28, 168: G = 15&lt;BR /&gt;
&amp;gt;         Case 26, 166: G = 31&lt;BR /&gt;
&amp;gt;         Case 19, 24, 38, 158, 164, 179, 189, 199, 209, 219, 229, 239, 249:&lt;BR /&gt;
G&lt;BR /&gt;
&amp;gt; = 32&lt;BR /&gt;
&amp;gt;         Case 22, 29, 162, 169, 250: G = 47&lt;BR /&gt;
&amp;gt;         Case 39, 48, 148, 159: G = 48&lt;BR /&gt;
&amp;gt;         Case 17, 20, 36, 49, 149, 156, 160, 177, 187, 197, 207, 217, 227,&lt;BR /&gt;
&amp;gt; 237, 247: G = 63&lt;BR /&gt;
&amp;gt;         Case 18, 27, 34, 58, 59, 68, 69, 78, 79, 88, 89, 98, 99, 108, 109,&lt;BR /&gt;
&amp;gt; 118, 119, _&lt;BR /&gt;
&amp;gt;             128, 129, 138, 139, 154, 167, 175, 185, 195, 205, 215, 225,&lt;BR /&gt;
235,&lt;BR /&gt;
&amp;gt; 245: G = 79&lt;BR /&gt;
&amp;gt;         Case 152: G = 86&lt;BR /&gt;
&amp;gt;         Case 25, 37, 46, 146, 157, 165: G = 95&lt;BR /&gt;
&amp;gt;         Case 32, 173, 183, 193, 203, 213, 223, 233, 243: G = 96&lt;BR /&gt;
&amp;gt;         Case 35, 44, 47, 144, 147, 155: G = 111&lt;BR /&gt;
&amp;gt;         Case 23, 30, 56, 57, 66, 67, 76, 77, 86, 87, 96, 97, 106, 107,&lt;BR /&gt;
116,&lt;BR /&gt;
&amp;gt; 117, _&lt;BR /&gt;
&amp;gt;             126, 127, 136, 137, 150, 163, 171, 181, 191, 201, 211, 221,&lt;BR /&gt;
231,&lt;BR /&gt;
&amp;gt; 241: G = 127&lt;BR /&gt;
&amp;gt;         Case 45, 145, 252: G = 128&lt;BR /&gt;
&amp;gt;         Case 33, 42, 54, 55, 64, 65, 74, 75, 84, 85, 94, 95, 104, 105,&lt;BR /&gt;
114,&lt;BR /&gt;
&amp;gt; 115, _&lt;BR /&gt;
&amp;gt;             124, 125, 134, 135, 142, 153: G = 144&lt;BR /&gt;
&amp;gt;         Case 21, 161: G = 159&lt;BR /&gt;
&amp;gt;         Case 43, 143, 253: G = 175&lt;BR /&gt;
&amp;gt;         Case 31, 40, 140, 151: G = 191&lt;BR /&gt;
&amp;gt;         Case 52, 53, 62, 63, 72, 73, 82, 83, 92, 93, 102, 103, 112, 113,&lt;BR /&gt;
&amp;gt; 122, 123, _&lt;BR /&gt;
&amp;gt;             132, 133: G = 207&lt;BR /&gt;
&amp;gt;         Case 41, 141: G = 223&lt;BR /&gt;
&amp;gt;         Case 50, 51, 60, 61, 70, 71, 80, 81, 90, 91, 100, 101, 110, 111,&lt;BR /&gt;
&amp;gt; 120, 121, _&lt;BR /&gt;
&amp;gt;             130, 131, 255: G = 255&lt;BR /&gt;
&amp;gt;     End Select&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     Select Case Col&lt;BR /&gt;
&amp;gt;         Case 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46,&lt;BR /&gt;
48,&lt;BR /&gt;
&amp;gt; 50, 52, _&lt;BR /&gt;
&amp;gt;             54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82,&lt;BR /&gt;
84,&lt;BR /&gt;
&amp;gt; 86, 88, 90, _&lt;BR /&gt;
&amp;gt;             92, 94, 96, 98: B = 0&lt;BR /&gt;
&amp;gt;         Case 108, 248: B = 15&lt;BR /&gt;
&amp;gt;         Case 106, 246: B = 31&lt;BR /&gt;
&amp;gt;         Case 19, 29, 39, 49, 59, 69, 79, 89, 99, 104, 118, 238, 244: B =&lt;BR /&gt;
32&lt;BR /&gt;
&amp;gt;         Case 102, 109, 242, 249, 250: B = 47&lt;BR /&gt;
&amp;gt;         Case 119, 128, 228, 239: B = 48&lt;BR /&gt;
&amp;gt;         Case 17, 27, 37, 47, 57, 67, 77, 87, 97, 100, 116, 129, 229, 236,&lt;BR /&gt;
&amp;gt; 240: B = 63&lt;BR /&gt;
&amp;gt;         Case 25, 35, 45, 55, 65, 75, 85, 95, 107, 114, 138, 139, 148, 149,&lt;BR /&gt;
&amp;gt; 158, 159, _&lt;BR /&gt;
&amp;gt;             168, 169, 178, 179, 188, 189, 198, 199, 208, 209, 218, 219,&lt;BR /&gt;
234,&lt;BR /&gt;
&amp;gt; 247: B = 79&lt;BR /&gt;
&amp;gt;         Case 105, 117, 126, 226, 237, 245: B = 95&lt;BR /&gt;
&amp;gt;         Case 23, 33, 43, 53, 63, 73, 83, 93, 112, 232: B = 96&lt;BR /&gt;
&amp;gt;         Case 115, 124, 127, 224, 227, 235: B = 111&lt;BR /&gt;
&amp;gt;         Case 21, 31, 41, 51, 61, 71, 81, 91, 103, 110, 136, 137, 146, 147,&lt;BR /&gt;
&amp;gt; 156, 157, _&lt;BR /&gt;
&amp;gt;             166, 167, 176, 177, 186, 187, 196, 197, 206, 207, 216, 217,&lt;BR /&gt;
230,&lt;BR /&gt;
&amp;gt; 243: B = 127&lt;BR /&gt;
&amp;gt;         Case 125, 225, 252: B = 128&lt;BR /&gt;
&amp;gt;         Case 113, 122, 134, 135, 144, 145, 154, 155, 164, 165, 174, 175,&lt;BR /&gt;
&amp;gt; 184, 185, _&lt;BR /&gt;
&amp;gt;             194, 195, 204, 205, 214, 215, 222, 233: B = 144&lt;BR /&gt;
&amp;gt;         Case 101, 241: B = 159&lt;BR /&gt;
&amp;gt;         Case 123, 223, 253: G = 175&lt;BR /&gt;
&amp;gt;         Case 111, 120, 220, 231: B = 191&lt;BR /&gt;
&amp;gt;         Case 132, 133, 142, 143, 152, 153, 162, 163, 172, 173, 182, 183,&lt;BR /&gt;
&amp;gt; 192, 193, _&lt;BR /&gt;
&amp;gt;             202, 203, 212, 213: B = 207&lt;BR /&gt;
&amp;gt;         Case 121: B = 223&lt;BR /&gt;
&amp;gt;         Case 130, 131, 140, 141, 150, 151, 160, 161, 170, 171, 180, 181,&lt;BR /&gt;
&amp;gt; 190, 191, _&lt;BR /&gt;
&amp;gt;             200, 201, 210, 211, 221, 255: B = 255&lt;BR /&gt;
&amp;gt;     End Select&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     AcadToRGB = RGB(R, G, B)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; End Function&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Russ Green" &lt;RUSS&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:D1F8BE90D4633C62355DEE34B7E729A0@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; I have a text box on a form and I would like users to type in the color&lt;BR /&gt;
&amp;gt; &amp;gt; number and have the backgound color of the textbox change to display&lt;BR /&gt;
this&lt;BR /&gt;
&amp;gt; &amp;gt; color.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Any ideas?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Russ&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/RUSS&gt;&lt;/MIFF&gt;</description>
      <pubDate>Sun, 07 Dec 2003 15:22:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/textbox-background-color-to-aci-color/m-p/314049#M58703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-12-07T15:22:33Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/textbox-background-color-to-aci-color/m-p/314050#M58704</link>
      <description>This is a slightly cleaner function....&lt;BR /&gt;
&lt;BR /&gt;
Public Function AcColorToRgb(ByVal iColor As Integer) As Long&lt;BR /&gt;
&lt;BR /&gt;
Dim lColorOut As Long&lt;BR /&gt;
&lt;BR /&gt;
Select Case iColor&lt;BR /&gt;
&lt;BR /&gt;
'Case acByLayer : lColorOut = vbWhite&lt;BR /&gt;
&lt;BR /&gt;
'Case acByBlock : lColorOut = vbWhite&lt;BR /&gt;
&lt;BR /&gt;
Case 1 : lColorOut = 255 'red&lt;BR /&gt;
&lt;BR /&gt;
Case 2 : lColorOut = 65535 'yellow&lt;BR /&gt;
&lt;BR /&gt;
Case 3 : lColorOut = 65280&lt;BR /&gt;
&lt;BR /&gt;
Case 4 : lColorOut = 16776960&lt;BR /&gt;
&lt;BR /&gt;
Case 5 : lColorOut = 16711680&lt;BR /&gt;
&lt;BR /&gt;
Case 6 : lColorOut = 16711935&lt;BR /&gt;
&lt;BR /&gt;
Case 7 : lColorOut = 16777215&lt;BR /&gt;
&lt;BR /&gt;
Case 8 : lColorOut = 8421504&lt;BR /&gt;
&lt;BR /&gt;
Case 9 : lColorOut = 12632256&lt;BR /&gt;
&lt;BR /&gt;
Case 10 : lColorOut = 255&lt;BR /&gt;
&lt;BR /&gt;
Case 11 : lColorOut = 8355839&lt;BR /&gt;
&lt;BR /&gt;
Case 12 : lColorOut = 204&lt;BR /&gt;
&lt;BR /&gt;
Case 13 : lColorOut = 6710988&lt;BR /&gt;
&lt;BR /&gt;
Case 14 : lColorOut = 153&lt;BR /&gt;
&lt;BR /&gt;
Case 15 : lColorOut = 5000345&lt;BR /&gt;
&lt;BR /&gt;
Case 16 : lColorOut = 127&lt;BR /&gt;
&lt;BR /&gt;
Case 17 : lColorOut = 4145023&lt;BR /&gt;
&lt;BR /&gt;
Case 18 : lColorOut = 77&lt;BR /&gt;
&lt;BR /&gt;
Case 19 : lColorOut = 2500172&lt;BR /&gt;
&lt;BR /&gt;
Case 20 : lColorOut = 16383&lt;BR /&gt;
&lt;BR /&gt;
Case 21 : lColorOut = 8364031&lt;BR /&gt;
&lt;BR /&gt;
Case 22 : lColorOut = 13260&lt;BR /&gt;
&lt;BR /&gt;
Case 23 : lColorOut = 6717388&lt;BR /&gt;
&lt;BR /&gt;
Case 24 : lColorOut = 9881&lt;BR /&gt;
&lt;BR /&gt;
Case 25 : lColorOut = 5005209&lt;BR /&gt;
&lt;BR /&gt;
Case 26 : lColorOut = 8063&lt;BR /&gt;
&lt;BR /&gt;
Case 27 : lColorOut = 4149119&lt;BR /&gt;
&lt;BR /&gt;
Case 28 : lColorOut = 4940&lt;BR /&gt;
&lt;BR /&gt;
Case 29 : lColorOut = 2502476&lt;BR /&gt;
&lt;BR /&gt;
Case 30 : lColorOut = 32767&lt;BR /&gt;
&lt;BR /&gt;
Case 31 : lColorOut = 8372223&lt;BR /&gt;
&lt;BR /&gt;
Case 32 : lColorOut = 26316&lt;BR /&gt;
&lt;BR /&gt;
Case 33 : lColorOut = 6724044&lt;BR /&gt;
&lt;BR /&gt;
Case 34 : lColorOut = 19609&lt;BR /&gt;
&lt;BR /&gt;
Case 35 : lColorOut = 5010073&lt;BR /&gt;
&lt;BR /&gt;
Case 36 : lColorOut = 16255&lt;BR /&gt;
&lt;BR /&gt;
Case 37 : lColorOut = 4153215&lt;BR /&gt;
&lt;BR /&gt;
Case 38 : lColorOut = 9804&lt;BR /&gt;
&lt;BR /&gt;
Case 39 : lColorOut = 2505036&lt;BR /&gt;
&lt;BR /&gt;
Case 40 : lColorOut = 49151&lt;BR /&gt;
&lt;BR /&gt;
Case 41 : lColorOut = 8380415&lt;BR /&gt;
&lt;BR /&gt;
Case 42 : lColorOut = 39372&lt;BR /&gt;
&lt;BR /&gt;
Case 43 : lColorOut = 6730444&lt;BR /&gt;
&lt;BR /&gt;
Case 44 : lColorOut = 29337&lt;BR /&gt;
&lt;BR /&gt;
Case 45 : lColorOut = 5014937&lt;BR /&gt;
&lt;BR /&gt;
Case 46 : lColorOut = 24447&lt;BR /&gt;
&lt;BR /&gt;
Case 47 : lColorOut = 4157311&lt;BR /&gt;
&lt;BR /&gt;
Case 48 : lColorOut = 14668&lt;BR /&gt;
&lt;BR /&gt;
Case 49 : lColorOut = 2507340&lt;BR /&gt;
&lt;BR /&gt;
Case 50 : lColorOut = 65535&lt;BR /&gt;
&lt;BR /&gt;
Case 51 : lColorOut = 8388607&lt;BR /&gt;
&lt;BR /&gt;
Case 52 : lColorOut = 52428&lt;BR /&gt;
&lt;BR /&gt;
Case 53 : lColorOut = 6737100&lt;BR /&gt;
&lt;BR /&gt;
Case 54 : lColorOut = 39321&lt;BR /&gt;
&lt;BR /&gt;
Case 55 : lColorOut = 5020057&lt;BR /&gt;
&lt;BR /&gt;
Case 56 : lColorOut = 32639&lt;BR /&gt;
&lt;BR /&gt;
Case 57 : lColorOut = 4161407&lt;BR /&gt;
&lt;BR /&gt;
Case 58 : lColorOut = 19532&lt;BR /&gt;
&lt;BR /&gt;
Case 59 : lColorOut = 2509900&lt;BR /&gt;
&lt;BR /&gt;
Case 60 : lColorOut = 65471&lt;BR /&gt;
&lt;BR /&gt;
Case 61 : lColorOut = 8388575&lt;BR /&gt;
&lt;BR /&gt;
Case 62 : lColorOut = 52377&lt;BR /&gt;
&lt;BR /&gt;
Case 63 : lColorOut = 6737074&lt;BR /&gt;
&lt;BR /&gt;
Case 64 : lColorOut = 39282&lt;BR /&gt;
&lt;BR /&gt;
Case 65 : lColorOut = 5020037&lt;BR /&gt;
&lt;BR /&gt;
Case 66 : lColorOut = 32607&lt;BR /&gt;
&lt;BR /&gt;
Case 67 : lColorOut = 4161391&lt;BR /&gt;
&lt;BR /&gt;
Case 68 : lColorOut = 19513&lt;BR /&gt;
&lt;BR /&gt;
Case 69 : lColorOut = 2509890&lt;BR /&gt;
&lt;BR /&gt;
Case 70 : lColorOut = 65407&lt;BR /&gt;
&lt;BR /&gt;
Case 71 : lColorOut = 8388543&lt;BR /&gt;
&lt;BR /&gt;
Case 72 : lColorOut = 52326&lt;BR /&gt;
&lt;BR /&gt;
Case 73 : lColorOut = 6737049&lt;BR /&gt;
&lt;BR /&gt;
Case 74 : lColorOut = 39244&lt;BR /&gt;
&lt;BR /&gt;
Case 75 : lColorOut = 5020018&lt;BR /&gt;
&lt;BR /&gt;
Case 76 : lColorOut = 32575&lt;BR /&gt;
&lt;BR /&gt;
Case 77 : lColorOut = 4161375&lt;BR /&gt;
&lt;BR /&gt;
Case 78 : lColorOut = 19494&lt;BR /&gt;
&lt;BR /&gt;
Case 79 : lColorOut = 2509881&lt;BR /&gt;
&lt;BR /&gt;
Case 80 : lColorOut = 65343&lt;BR /&gt;
&lt;BR /&gt;
Case 81 : lColorOut = 8388511&lt;BR /&gt;
&lt;BR /&gt;
Case 82 : lColorOut = 52275&lt;BR /&gt;
&lt;BR /&gt;
Case 83 : lColorOut = 6737023&lt;BR /&gt;
&lt;BR /&gt;
Case 84 : lColorOut = 39206&lt;BR /&gt;
&lt;BR /&gt;
Case 85 : lColorOut = 5019999&lt;BR /&gt;
&lt;BR /&gt;
Case 86 : lColorOut = 32543&lt;BR /&gt;
&lt;BR /&gt;
Case 87 : lColorOut = 4161359&lt;BR /&gt;
&lt;BR /&gt;
Case 88 : lColorOut = 19475&lt;BR /&gt;
&lt;BR /&gt;
Case 89 : lColorOut = 2509871&lt;BR /&gt;
&lt;BR /&gt;
Case 90 : lColorOut = 65280&lt;BR /&gt;
&lt;BR /&gt;
Case 91 : lColorOut = 8388479&lt;BR /&gt;
&lt;BR /&gt;
Case 92 : lColorOut = 52224&lt;BR /&gt;
&lt;BR /&gt;
Case 93 : lColorOut = 6736998&lt;BR /&gt;
&lt;BR /&gt;
Case 94 : lColorOut = 39168&lt;BR /&gt;
&lt;BR /&gt;
Case 95 : lColorOut = 5019980&lt;BR /&gt;
&lt;BR /&gt;
Case 96 : lColorOut = 32512&lt;BR /&gt;
&lt;BR /&gt;
Case 97 : lColorOut = 4161343&lt;BR /&gt;
&lt;BR /&gt;
Case 98 : lColorOut = 19456&lt;BR /&gt;
&lt;BR /&gt;
Case 99 : lColorOut = 2509862&lt;BR /&gt;
&lt;BR /&gt;
Case 100 : lColorOut = 4194048&lt;BR /&gt;
&lt;BR /&gt;
Case 101 : lColorOut = 10485631&lt;BR /&gt;
&lt;BR /&gt;
Case 102 : lColorOut = 3394560&lt;BR /&gt;
&lt;BR /&gt;
Case 103 : lColorOut = 8375398&lt;BR /&gt;
&lt;BR /&gt;
Case 104 : lColorOut = 2529536&lt;BR /&gt;
&lt;BR /&gt;
Case 105 : lColorOut = 6265164&lt;BR /&gt;
&lt;BR /&gt;
Case 106 : lColorOut = 2064128&lt;BR /&gt;
&lt;BR /&gt;
Case 107 : lColorOut = 5209919&lt;BR /&gt;
&lt;BR /&gt;
Case 108 : lColorOut = 1264640&lt;BR /&gt;
&lt;BR /&gt;
Case 109 : lColorOut = 3099686&lt;BR /&gt;
&lt;BR /&gt;
Case 110 : lColorOut = 8388352&lt;BR /&gt;
&lt;BR /&gt;
Case 111 : lColorOut = 12582783&lt;BR /&gt;
&lt;BR /&gt;
Case 112 : lColorOut = 6736896&lt;BR /&gt;
&lt;BR /&gt;
Case 113 : lColorOut = 10079334&lt;BR /&gt;
&lt;BR /&gt;
Case 114 : lColorOut = 5019904&lt;BR /&gt;
&lt;BR /&gt;
Case 115 : lColorOut = 7510348&lt;BR /&gt;
&lt;BR /&gt;
Case 116 : lColorOut = 4161280&lt;BR /&gt;
&lt;BR /&gt;
Case 117 : lColorOut = 6258495&lt;BR /&gt;
&lt;BR /&gt;
Case 118 : lColorOut = 2509824&lt;BR /&gt;
&lt;BR /&gt;
Case 119 : lColorOut = 3755046&lt;BR /&gt;
&lt;BR /&gt;
Case 120 : lColorOut = 12582656&lt;BR /&gt;
&lt;BR /&gt;
Case 121 : lColorOut = 14679935&lt;BR /&gt;
&lt;BR /&gt;
Case 122 : lColorOut = 10079232&lt;BR /&gt;
&lt;BR /&gt;
Case 123 : lColorOut = 11717734&lt;BR /&gt;
&lt;BR /&gt;
Case 124 : lColorOut = 7510272&lt;BR /&gt;
&lt;BR /&gt;
Case 125 : lColorOut = 8755532&lt;BR /&gt;
&lt;BR /&gt;
Case 126 : lColorOut = 6258432&lt;BR /&gt;
&lt;BR /&gt;
Case 127 : lColorOut = 7307071&lt;BR /&gt;
&lt;BR /&gt;
Case 128 : lColorOut = 3755008&lt;BR /&gt;
&lt;BR /&gt;
Case 129 : lColorOut = 4344870&lt;BR /&gt;
&lt;BR /&gt;
Case 130 : lColorOut = 16776960&lt;BR /&gt;
&lt;BR /&gt;
Case 131 : lColorOut = 16777087&lt;BR /&gt;
&lt;BR /&gt;
Case 132 : lColorOut = 13421568&lt;BR /&gt;
&lt;BR /&gt;
Case 133 : lColorOut = 13421670&lt;BR /&gt;
&lt;BR /&gt;
Case 134 : lColorOut = 10066176&lt;BR /&gt;
&lt;BR /&gt;
Case 135 : lColorOut = 10066252&lt;BR /&gt;
&lt;BR /&gt;
Case 136 : lColorOut = 8355584&lt;BR /&gt;
&lt;BR /&gt;
Case 137 : lColorOut = 8355647&lt;BR /&gt;
&lt;BR /&gt;
Case 138 : lColorOut = 5000192&lt;BR /&gt;
&lt;BR /&gt;
Case 139 : lColorOut = 5000230&lt;BR /&gt;
&lt;BR /&gt;
Case 140 : lColorOut = 16760576&lt;BR /&gt;
&lt;BR /&gt;
Case 141 : lColorOut = 16768895&lt;BR /&gt;
&lt;BR /&gt;
Case 142 : lColorOut = 13408512&lt;BR /&gt;
&lt;BR /&gt;
Case 143 : lColorOut = 13415014&lt;BR /&gt;
&lt;BR /&gt;
Case 144 : lColorOut = 10056192&lt;BR /&gt;
&lt;BR /&gt;
Case 145 : lColorOut = 10061132&lt;BR /&gt;
&lt;BR /&gt;
Case 146 : lColorOut = 8347392&lt;BR /&gt;
&lt;BR /&gt;
Case 147 : lColorOut = 8351551&lt;BR /&gt;
&lt;BR /&gt;
Case 148 : lColorOut = 4995328&lt;BR /&gt;
&lt;BR /&gt;
Case 149 : lColorOut = 4997670&lt;BR /&gt;
&lt;BR /&gt;
Case 150 : lColorOut = 16744192&lt;BR /&gt;
&lt;BR /&gt;
Case 151 : lColorOut = 16760703&lt;BR /&gt;
&lt;BR /&gt;
Case 152 : lColorOut = 13395456&lt;BR /&gt;
&lt;BR /&gt;
Case 153 : lColorOut = 13408614&lt;BR /&gt;
&lt;BR /&gt;
Case 154 : lColorOut = 10046464&lt;BR /&gt;
&lt;BR /&gt;
Case 155 : lColorOut = 10056268&lt;BR /&gt;
&lt;BR /&gt;
Case 156 : lColorOut = 8339200&lt;BR /&gt;
&lt;BR /&gt;
Case 157 : lColorOut = 8347455&lt;BR /&gt;
&lt;BR /&gt;
Case 158 : lColorOut = 4990464&lt;BR /&gt;
&lt;BR /&gt;
Case 159 : lColorOut = 4995366&lt;BR /&gt;
&lt;BR /&gt;
Case 160 : lColorOut = 16727808&lt;BR /&gt;
&lt;BR /&gt;
Case 161 : lColorOut = 16752511&lt;BR /&gt;
&lt;BR /&gt;
Case 162 : lColorOut = 13382400&lt;BR /&gt;
&lt;BR /&gt;
Case 163 : lColorOut = 13401958&lt;BR /&gt;
&lt;BR /&gt;
Case 164 : lColorOut = 10036736&lt;BR /&gt;
&lt;BR /&gt;
Case 165 : lColorOut = 10051404&lt;BR /&gt;
&lt;BR /&gt;
Case 166 : lColorOut = 8331008&lt;BR /&gt;
&lt;BR /&gt;
Case 167 : lColorOut = 8343359&lt;BR /&gt;
&lt;BR /&gt;
Case 168 : lColorOut = 4985600&lt;BR /&gt;
&lt;BR /&gt;
Case 169 : lColorOut = 4992806&lt;BR /&gt;
&lt;BR /&gt;
Case 170 : lColorOut = 16711680&lt;BR /&gt;
&lt;BR /&gt;
Case 171 : lColorOut = 16744319&lt;BR /&gt;
&lt;BR /&gt;
Case 172 : lColorOut = 13369344&lt;BR /&gt;
&lt;BR /&gt;
Case 173 : lColorOut = 13395558&lt;BR /&gt;
&lt;BR /&gt;
Case 174 : lColorOut = 10027008&lt;BR /&gt;
&lt;BR /&gt;
Case 175 : lColorOut = 10046540&lt;BR /&gt;
&lt;BR /&gt;
Case 176 : lColorOut = 8323072&lt;BR /&gt;
&lt;BR /&gt;
Case 177 : lColorOut = 8339263&lt;BR /&gt;
&lt;BR /&gt;
Case 178 : lColorOut = 4980736&lt;BR /&gt;
&lt;BR /&gt;
Case 179 : lColorOut = 4990502&lt;BR /&gt;
&lt;BR /&gt;
Case 180 : lColorOut = 16711743&lt;BR /&gt;
&lt;BR /&gt;
Case 181 : lColorOut = 16744351&lt;BR /&gt;
&lt;BR /&gt;
Case 182 : lColorOut = 13369395&lt;BR /&gt;
&lt;BR /&gt;
Case 183 : lColorOut = 13395583&lt;BR /&gt;
&lt;BR /&gt;
Case 184 : lColorOut = 10027046&lt;BR /&gt;
&lt;BR /&gt;
Case 185 : lColorOut = 10046559&lt;BR /&gt;
&lt;BR /&gt;
Case 186 : lColorOut = 8323103&lt;BR /&gt;
&lt;BR /&gt;
Case 187 : lColorOut = 8339279&lt;BR /&gt;
&lt;BR /&gt;
Case 188 : lColorOut = 4980755&lt;BR /&gt;
&lt;BR /&gt;
Case 189 : lColorOut = 4990511&lt;BR /&gt;
&lt;BR /&gt;
Case 190 : lColorOut = 16711807&lt;BR /&gt;
&lt;BR /&gt;
Case 191 : lColorOut = 16744383&lt;BR /&gt;
&lt;BR /&gt;
Case 192 : lColorOut = 13369446&lt;BR /&gt;
&lt;BR /&gt;
Case 193 : lColorOut = 13395609&lt;BR /&gt;
&lt;BR /&gt;
Case 194 : lColorOut = 10027084&lt;BR /&gt;
&lt;BR /&gt;
Case 195 : lColorOut = 10046578&lt;BR /&gt;
&lt;BR /&gt;
Case 196 : lColorOut = 8323135&lt;BR /&gt;
&lt;BR /&gt;
Case 197 : lColorOut = 8339295&lt;BR /&gt;
&lt;BR /&gt;
Case 198 : lColorOut = 4980774&lt;BR /&gt;
&lt;BR /&gt;
Case 199 : lColorOut = 4990521&lt;BR /&gt;
&lt;BR /&gt;
Case 200 : lColorOut = 16711871&lt;BR /&gt;
&lt;BR /&gt;
Case 201 : lColorOut = 16744415&lt;BR /&gt;
&lt;BR /&gt;
Case 202 : lColorOut = 13369497&lt;BR /&gt;
&lt;BR /&gt;
Case 203 : lColorOut = 13395634&lt;BR /&gt;
&lt;BR /&gt;
Case 204 : lColorOut = 10027122&lt;BR /&gt;
&lt;BR /&gt;
Case 205 : lColorOut = 10046597&lt;BR /&gt;
&lt;BR /&gt;
Case 206 : lColorOut = 8323167&lt;BR /&gt;
&lt;BR /&gt;
Case 207 : lColorOut = 8339311&lt;BR /&gt;
&lt;BR /&gt;
Case 208 : lColorOut = 4980793&lt;BR /&gt;
&lt;BR /&gt;
Case 209 : lColorOut = 4990530&lt;BR /&gt;
&lt;BR /&gt;
Case 210 : lColorOut = 16711935&lt;BR /&gt;
&lt;BR /&gt;
Case 211 : lColorOut = 16744447&lt;BR /&gt;
&lt;BR /&gt;
Case 212 : lColorOut = 13369548&lt;BR /&gt;
&lt;BR /&gt;
Case 213 : lColorOut = 13395660&lt;BR /&gt;
&lt;BR /&gt;
Case 214 : lColorOut = 10027161&lt;BR /&gt;
&lt;BR /&gt;
Case 215 : lColorOut = 10046617&lt;BR /&gt;
&lt;BR /&gt;
Case 216 : lColorOut = 8323199&lt;BR /&gt;
&lt;BR /&gt;
Case 217 : lColorOut = 8339327&lt;BR /&gt;
&lt;BR /&gt;
Case 218 : lColorOut = 4980812&lt;BR /&gt;
&lt;BR /&gt;
Case 219 : lColorOut = 4990540&lt;BR /&gt;
&lt;BR /&gt;
Case 220 : lColorOut = 12517631&lt;BR /&gt;
&lt;BR /&gt;
Case 221 : lColorOut = 14647295&lt;BR /&gt;
&lt;BR /&gt;
Case 222 : lColorOut = 10027212&lt;BR /&gt;
&lt;BR /&gt;
Case 223 : lColorOut = 11691724&lt;BR /&gt;
&lt;BR /&gt;
Case 224 : lColorOut = 7471257&lt;BR /&gt;
&lt;BR /&gt;
Case 225 : lColorOut = 8735897&lt;BR /&gt;
&lt;BR /&gt;
Case 226 : lColorOut = 6226047&lt;BR /&gt;
&lt;BR /&gt;
Case 227 : lColorOut = 7290751&lt;BR /&gt;
&lt;BR /&gt;
Case 228 : lColorOut = 3735628&lt;BR /&gt;
&lt;BR /&gt;
Case 229 : lColorOut = 4335180&lt;BR /&gt;
&lt;BR /&gt;
Case 230 : lColorOut = 8323327&lt;BR /&gt;
&lt;BR /&gt;
Case 231 : lColorOut = 12550143&lt;BR /&gt;
&lt;BR /&gt;
Case 232 : lColorOut = 6684876&lt;BR /&gt;
&lt;BR /&gt;
Case 233 : lColorOut = 10053324&lt;BR /&gt;
&lt;BR /&gt;
Case 234 : lColorOut = 4980889&lt;BR /&gt;
&lt;BR /&gt;
Case 235 : lColorOut = 7490713&lt;BR /&gt;
&lt;BR /&gt;
Case 236 : lColorOut = 4128895&lt;BR /&gt;
&lt;BR /&gt;
Case 237 : lColorOut = 6242175&lt;BR /&gt;
&lt;BR /&gt;
Case 238 : lColorOut = 2490444&lt;BR /&gt;
&lt;BR /&gt;
Case 239 : lColorOut = 3745356&lt;BR /&gt;
&lt;BR /&gt;
Case 240 : lColorOut = 4129023&lt;BR /&gt;
&lt;BR /&gt;
Case 241 : lColorOut = 10452991&lt;BR /&gt;
&lt;BR /&gt;
Case 242 : lColorOut = 3342540&lt;BR /&gt;
&lt;BR /&gt;
Case 243 : lColorOut = 8349388&lt;BR /&gt;
&lt;BR /&gt;
Case 244 : lColorOut = 2490521&lt;BR /&gt;
&lt;BR /&gt;
Case 245 : lColorOut = 6245529&lt;BR /&gt;
&lt;BR /&gt;
Case 246 : lColorOut = 2031743&lt;BR /&gt;
&lt;BR /&gt;
Case 247 : lColorOut = 5193599&lt;BR /&gt;
&lt;BR /&gt;
Case 248 : lColorOut = 1245260&lt;BR /&gt;
&lt;BR /&gt;
Case 249 : lColorOut = 3089996&lt;BR /&gt;
&lt;BR /&gt;
Case 250 : lColorOut = 3355443&lt;BR /&gt;
&lt;BR /&gt;
Case 251 : lColorOut = 5987163&lt;BR /&gt;
&lt;BR /&gt;
Case 252 : lColorOut = 8684676&lt;BR /&gt;
&lt;BR /&gt;
Case 253 : lColorOut = 11382189&lt;BR /&gt;
&lt;BR /&gt;
Case 254 : lColorOut = 14079702&lt;BR /&gt;
&lt;BR /&gt;
Case 255 : lColorOut = 16777215 'Gray&lt;BR /&gt;
&lt;BR /&gt;
End Select&lt;BR /&gt;
&lt;BR /&gt;
Return lColorOut&lt;BR /&gt;
&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Russ Green" &lt;RUSS&gt; wrote in message&lt;BR /&gt;
news:E6AD69E54B8EFE92ECA8A7EACA400081@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Thanks&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; In VB.NET to use RGB you must do this...&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Private Sub nudACI_ValueChanged(ByVal sender As System.Object, _&lt;BR /&gt;
&amp;gt; ByVal e As System.EventArgs) Handles nudACI.ValueChanged&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; On Error Resume Next&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Me.nudACI.BackColor = System.Drawing.ColorTranslator.FromOle _&lt;BR /&gt;
&amp;gt; (CInt(AcadToRgb(CInt(Me.nudACI.Value))))&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; End Sub&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Russ&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Jeff Mishler" &lt;MIFF&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:DAA9327D2B2525795B9E4CE00585AB71@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Russ,&lt;BR /&gt;
&amp;gt; &amp;gt; This code along with the included AcadToRGB function posted 12/23/2002&lt;BR /&gt;
by&lt;BR /&gt;
&amp;gt; &amp;gt; Kevin Terry does what you want.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Private Sub TextBox1_Change()&lt;BR /&gt;
&amp;gt; &amp;gt; On Error Resume Next&lt;BR /&gt;
&amp;gt; &amp;gt; TextBox1.BackColor = AcadToRGB(TextBox1.Value)&lt;BR /&gt;
&amp;gt; &amp;gt; End Sub&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; ' . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&lt;BR /&gt;
.&lt;BR /&gt;
&amp;gt; .&lt;BR /&gt;
&amp;gt; &amp;gt; . . . . . . . . . . .&lt;BR /&gt;
&amp;gt; &amp;gt; '&lt;BR /&gt;
&amp;gt; &amp;gt; 'Returns RGB equivalent to passed acad color index (ACI)&lt;BR /&gt;
&amp;gt; &amp;gt; '&lt;BR /&gt;
&amp;gt; &amp;gt; Public Function AcadToRGB(ByVal Col As Long) As Variant&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;     Dim R As Long, G As Long, B As Long&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;     Select Case Col&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 1: AcadToRGB = 255: Exit Function&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 2: AcadToRGB = 65535: Exit Function&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 3: AcadToRGB = 65280: Exit Function&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 4: AcadToRGB = 16776960: Exit Function&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 5: AcadToRGB = 16711680: Exit Function&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 6: AcadToRGB = 16711935: Exit Function&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 7: AcadToRGB = 16777215: Exit Function&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 8: AcadToRGB = 8355711: Exit Function&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 9: AcadToRGB = 12566463: Exit Function&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 10: AcadToRGB = 255: Exit Function&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 11: AcadToRGB = 8355839: Exit Function&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 12: AcadToRGB = 207: Exit Function&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 13: AcadToRGB = 6316239: Exit Function&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 14: AcadToRGB = 144: Exit Function&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 15: AcadToRGB = 5197712: Exit Function&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 16: AcadToRGB = 127: Exit Function&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114,&lt;BR /&gt;
&amp;gt; &amp;gt; 116, 118, _&lt;BR /&gt;
&amp;gt; &amp;gt;             120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142,&lt;BR /&gt;
&amp;gt; 144,&lt;BR /&gt;
&amp;gt; &amp;gt; 146, 148, _&lt;BR /&gt;
&amp;gt; &amp;gt;             150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172,&lt;BR /&gt;
&amp;gt; 174,&lt;BR /&gt;
&amp;gt; &amp;gt; 176, 178: R = 0&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 88, 188: R = 15&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 86, 186: R = 31&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 78, 84, 99, 109, 119, 129, 139, 149, 159, 169, 179, 184,&lt;BR /&gt;
198:&lt;BR /&gt;
&amp;gt; R&lt;BR /&gt;
&amp;gt; &amp;gt; = 32&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 82, 89, 182, 189, 250: R = 47&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 68, 79, 199, 208: R = 48&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 69, 76, 80, 97, 107, 117, 127, 137, 147, 157, 167, 177,&lt;BR /&gt;
180,&lt;BR /&gt;
&amp;gt; &amp;gt; 196, 209: R = 63&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 18, 19, 28, 29, 38, 39, 48, 49, 58, 59, 74, 87, 95, 105,&lt;BR /&gt;
115,&lt;BR /&gt;
&amp;gt; &amp;gt; 125, 135, _&lt;BR /&gt;
&amp;gt; &amp;gt;             145, 155, 165, 175, 187, 194, 218, 219, 228, 229, 238, 239,&lt;BR /&gt;
&amp;gt; 248,&lt;BR /&gt;
&amp;gt; &amp;gt; 249: R = 79&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 66, 77, 185, 197, 206: R = 95&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 72, 85, 93, 103, 113, 123, 133, 143, 153, 163, 173, 192: R&lt;BR /&gt;
=&lt;BR /&gt;
&amp;gt; 96&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 64, 67, 75, 195, 204, 207: R = 111&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 17, 26, 27, 36, 37, 46, 47, 56, 57, 70, 83, 91, 101, 111,&lt;BR /&gt;
&amp;gt; 121,&lt;BR /&gt;
&amp;gt; &amp;gt; 131, _&lt;BR /&gt;
&amp;gt; &amp;gt;             141, 151, 161, 171, 183, 190, 216, 217, 226, 227, 236, 237,&lt;BR /&gt;
&amp;gt; 246,&lt;BR /&gt;
&amp;gt; &amp;gt; 247: R = 127&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 65, 205, 252: R = 128&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 24, 25, 34, 35, 44, 45, 54, 55, 62, 73, 193, 202, 214, 215,&lt;BR /&gt;
&amp;gt; &amp;gt; 224, 225, _&lt;BR /&gt;
&amp;gt; &amp;gt;             234, 235, 244, 245: R = 144&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 81, 181: R = 159&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 63, 203, 253: R = 175&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 60, 71, 191, 200: R = 191&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 22, 23, 32, 33, 42, 43, 52, 53, 212, 213, 222, 223, 232,&lt;BR /&gt;
233,&lt;BR /&gt;
&amp;gt; &amp;gt; 242, 243: R = 207&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 61, 201: R = 223&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 20, 21, 30, 31, 40, 41, 50, 51, 210, 211, 220, 221, 230,&lt;BR /&gt;
231,&lt;BR /&gt;
&amp;gt; &amp;gt; 240, 241, 255: R = 255&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 251: R = 80: G = 80: B = 80&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 254: R = 208: G = 208: B = 208&lt;BR /&gt;
&amp;gt; &amp;gt;     End Select&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;     Select Case Col&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 18, 170, 172, 174, 176, 178, 180, 182, 184, 186, 188, 190,&lt;BR /&gt;
&amp;gt; 192,&lt;BR /&gt;
&amp;gt; &amp;gt; 194, _&lt;BR /&gt;
&amp;gt; &amp;gt;             196, 198, 200, 202, 204, 206, 208, 210, 212, 214, 216, 218,&lt;BR /&gt;
&amp;gt; 220,&lt;BR /&gt;
&amp;gt; &amp;gt; 222, 224, _&lt;BR /&gt;
&amp;gt; &amp;gt;             226, 228, 230, 232, 234, 236, 238, 240, 242, 244, 246, 248:&lt;BR /&gt;
G&lt;BR /&gt;
&amp;gt; =&lt;BR /&gt;
&amp;gt; &amp;gt; 0&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 28, 168: G = 15&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 26, 166: G = 31&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 19, 24, 38, 158, 164, 179, 189, 199, 209, 219, 229, 239,&lt;BR /&gt;
249:&lt;BR /&gt;
&amp;gt; G&lt;BR /&gt;
&amp;gt; &amp;gt; = 32&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 22, 29, 162, 169, 250: G = 47&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 39, 48, 148, 159: G = 48&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 17, 20, 36, 49, 149, 156, 160, 177, 187, 197, 207, 217,&lt;BR /&gt;
227,&lt;BR /&gt;
&amp;gt; &amp;gt; 237, 247: G = 63&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 18, 27, 34, 58, 59, 68, 69, 78, 79, 88, 89, 98, 99, 108,&lt;BR /&gt;
109,&lt;BR /&gt;
&amp;gt; &amp;gt; 118, 119, _&lt;BR /&gt;
&amp;gt; &amp;gt;             128, 129, 138, 139, 154, 167, 175, 185, 195, 205, 215, 225,&lt;BR /&gt;
&amp;gt; 235,&lt;BR /&gt;
&amp;gt; &amp;gt; 245: G = 79&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 152: G = 86&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 25, 37, 46, 146, 157, 165: G = 95&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 32, 173, 183, 193, 203, 213, 223, 233, 243: G = 96&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 35, 44, 47, 144, 147, 155: G = 111&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 23, 30, 56, 57, 66, 67, 76, 77, 86, 87, 96, 97, 106, 107,&lt;BR /&gt;
&amp;gt; 116,&lt;BR /&gt;
&amp;gt; &amp;gt; 117, _&lt;BR /&gt;
&amp;gt; &amp;gt;             126, 127, 136, 137, 150, 163, 171, 181, 191, 201, 211, 221,&lt;BR /&gt;
&amp;gt; 231,&lt;BR /&gt;
&amp;gt; &amp;gt; 241: G = 127&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 45, 145, 252: G = 128&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 33, 42, 54, 55, 64, 65, 74, 75, 84, 85, 94, 95, 104, 105,&lt;BR /&gt;
&amp;gt; 114,&lt;BR /&gt;
&amp;gt; &amp;gt; 115, _&lt;BR /&gt;
&amp;gt; &amp;gt;             124, 125, 134, 135, 142, 153: G = 144&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 21, 161: G = 159&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 43, 143, 253: G = 175&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 31, 40, 140, 151: G = 191&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 52, 53, 62, 63, 72, 73, 82, 83, 92, 93, 102, 103, 112, 113,&lt;BR /&gt;
&amp;gt; &amp;gt; 122, 123, _&lt;BR /&gt;
&amp;gt; &amp;gt;             132, 133: G = 207&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 41, 141: G = 223&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 50, 51, 60, 61, 70, 71, 80, 81, 90, 91, 100, 101, 110, 111,&lt;BR /&gt;
&amp;gt; &amp;gt; 120, 121, _&lt;BR /&gt;
&amp;gt; &amp;gt;             130, 131, 255: G = 255&lt;BR /&gt;
&amp;gt; &amp;gt;     End Select&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;     Select Case Col&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46,&lt;BR /&gt;
&amp;gt; 48,&lt;BR /&gt;
&amp;gt; &amp;gt; 50, 52, _&lt;BR /&gt;
&amp;gt; &amp;gt;             54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82,&lt;BR /&gt;
&amp;gt; 84,&lt;BR /&gt;
&amp;gt; &amp;gt; 86, 88, 90, _&lt;BR /&gt;
&amp;gt; &amp;gt;             92, 94, 96, 98: B = 0&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 108, 248: B = 15&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 106, 246: B = 31&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 19, 29, 39, 49, 59, 69, 79, 89, 99, 104, 118, 238, 244: B =&lt;BR /&gt;
&amp;gt; 32&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 102, 109, 242, 249, 250: B = 47&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 119, 128, 228, 239: B = 48&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 17, 27, 37, 47, 57, 67, 77, 87, 97, 100, 116, 129, 229,&lt;BR /&gt;
236,&lt;BR /&gt;
&amp;gt; &amp;gt; 240: B = 63&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 25, 35, 45, 55, 65, 75, 85, 95, 107, 114, 138, 139, 148,&lt;BR /&gt;
149,&lt;BR /&gt;
&amp;gt; &amp;gt; 158, 159, _&lt;BR /&gt;
&amp;gt; &amp;gt;             168, 169, 178, 179, 188, 189, 198, 199, 208, 209, 218, 219,&lt;BR /&gt;
&amp;gt; 234,&lt;BR /&gt;
&amp;gt; &amp;gt; 247: B = 79&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 105, 117, 126, 226, 237, 245: B = 95&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 23, 33, 43, 53, 63, 73, 83, 93, 112, 232: B = 96&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 115, 124, 127, 224, 227, 235: B = 111&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 21, 31, 41, 51, 61, 71, 81, 91, 103, 110, 136, 137, 146,&lt;BR /&gt;
147,&lt;BR /&gt;
&amp;gt; &amp;gt; 156, 157, _&lt;BR /&gt;
&amp;gt; &amp;gt;             166, 167, 176, 177, 186, 187, 196, 197, 206, 207, 216, 217,&lt;BR /&gt;
&amp;gt; 230,&lt;BR /&gt;
&amp;gt; &amp;gt; 243: B = 127&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 125, 225, 252: B = 128&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 113, 122, 134, 135, 144, 145, 154, 155, 164, 165, 174, 175,&lt;BR /&gt;
&amp;gt; &amp;gt; 184, 185, _&lt;BR /&gt;
&amp;gt; &amp;gt;             194, 195, 204, 205, 214, 215, 222, 233: B = 144&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 101, 241: B = 159&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 123, 223, 253: G = 175&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 111, 120, 220, 231: B = 191&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 132, 133, 142, 143, 152, 153, 162, 163, 172, 173, 182, 183,&lt;BR /&gt;
&amp;gt; &amp;gt; 192, 193, _&lt;BR /&gt;
&amp;gt; &amp;gt;             202, 203, 212, 213: B = 207&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 121: B = 223&lt;BR /&gt;
&amp;gt; &amp;gt;         Case 130, 131, 140, 141, 150, 151, 160, 161, 170, 171, 180, 181,&lt;BR /&gt;
&amp;gt; &amp;gt; 190, 191, _&lt;BR /&gt;
&amp;gt; &amp;gt;             200, 201, 210, 211, 221, 255: B = 255&lt;BR /&gt;
&amp;gt; &amp;gt;     End Select&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;     AcadToRGB = RGB(R, G, B)&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; End Function&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Russ Green" &lt;RUSS&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:D1F8BE90D4633C62355DEE34B7E729A0@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; I have a text box on a form and I would like users to type in the&lt;BR /&gt;
color&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; number and have the backgound color of the textbox change to display&lt;BR /&gt;
&amp;gt; this&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; color.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Any ideas?&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Russ&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/RUSS&gt;&lt;/MIFF&gt;&lt;/RUSS&gt;</description>
      <pubDate>Sun, 07 Dec 2003 15:48:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/textbox-background-color-to-aci-color/m-p/314050#M58704</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-12-07T15:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Textbox background color to aci color</title>
      <link>https://forums.autodesk.com/t5/vba-forum/textbox-background-color-to-aci-color/m-p/314051#M58705</link>
      <description>Russ, if you're using acad 2004 there is a new TrueColor object that you can&lt;BR /&gt;
use to do this conversion for you.&lt;BR /&gt;
-- &lt;BR /&gt;
Bobby C. Jones&lt;BR /&gt;
www.AcadX.com&lt;BR /&gt;
&lt;BR /&gt;
"Russ Green" &lt;RUSS&gt; wrote in message&lt;BR /&gt;
news:D1F8BE90D4633C62355DEE34B7E729A0@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I have a text box on a form and I would like users to type in the color&lt;BR /&gt;
&amp;gt; number and have the backgound color of the textbox change to display this&lt;BR /&gt;
&amp;gt; color.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Any ideas?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Russ&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/RUSS&gt;</description>
      <pubDate>Mon, 08 Dec 2003 09:08:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/textbox-background-color-to-aci-color/m-p/314051#M58705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-12-08T09:08:52Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/textbox-background-color-to-aci-color/m-p/314052#M58706</link>
      <description>Not using 2004 yet just programming for 2002 right now.&lt;BR /&gt;
&lt;BR /&gt;
Russ&lt;BR /&gt;
&lt;BR /&gt;
"Bobby C. Jones" &lt;BOBBYJ&gt; wrote in message&lt;BR /&gt;
news:ABFF5E8B58AB06889264CD7BB1786AEC@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Russ, if you're using acad 2004 there is a new TrueColor object that you&lt;BR /&gt;
can&lt;BR /&gt;
&amp;gt; use to do this conversion for you.&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Bobby C. Jones&lt;BR /&gt;
&amp;gt; www.AcadX.com&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Russ Green" &lt;RUSS&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:D1F8BE90D4633C62355DEE34B7E729A0@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; I have a text box on a form and I would like users to type in the color&lt;BR /&gt;
&amp;gt; &amp;gt; number and have the backgound color of the textbox change to display&lt;BR /&gt;
this&lt;BR /&gt;
&amp;gt; &amp;gt; color.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Any ideas?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Russ&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/RUSS&gt;&lt;/BOBBYJ&gt;</description>
      <pubDate>Mon, 08 Dec 2003 09:13:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/textbox-background-color-to-aci-color/m-p/314052#M58706</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-12-08T09:13:08Z</dc:date>
    </item>
  </channel>
</rss>

