<?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: in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/checkbox-backcolor-ques/m-p/349899#M76684</link>
    <description>Joeri Tuyn &lt;PERDASO&gt; wrote in message&lt;BR /&gt;
news:80B84AC74D412C9226AE0C6BBF42B77E@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; The number you enter isn't a matching color... Try VbRed, or VbGrey or if&lt;BR /&gt;
&amp;gt; you do want to enter a number try this:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;  ChkBox.BackColor = &amp;amp;H8000000F&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; This will set the color to grey.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Joeri Tuyn&lt;BR /&gt;
Hi Joeri,&lt;BR /&gt;
Thanks for responding.&lt;BR /&gt;
Are you possibly working in VB? I'm in VBA at the moment and I get compile&lt;BR /&gt;
error variable not defined with this line:&lt;BR /&gt;
Const ColorOff = vbgrey&lt;BR /&gt;
'and the same error with&lt;BR /&gt;
Dim coloroff As Long&lt;BR /&gt;
coloroff = vbgrey&lt;BR /&gt;
&lt;BR /&gt;
'however all of these work fine&lt;BR /&gt;
Const ColorOn = -2147483643&lt;BR /&gt;
Const ColorOff = -2147483633&lt;BR /&gt;
Const ColorOff = &amp;amp;H8000000F&lt;BR /&gt;
&lt;BR /&gt;
'this is being called like&lt;BR /&gt;
ChkBox.BackColor = ColorOff&lt;BR /&gt;
&lt;BR /&gt;
what I found was that a checkbox or option button has to be disabled before&lt;BR /&gt;
the background can be set to grey.&lt;BR /&gt;
whereas a textbox can have a grey background and still be enabled.  Don't&lt;BR /&gt;
know why that is, and I wouldn't mind being able to grey a checkbox when&lt;BR /&gt;
it's unchecked but still enabled but hey, I can't have everything. :-)~&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the help&lt;BR /&gt;
Mark&lt;/PERDASO&gt;</description>
    <pubDate>Sun, 24 Feb 2002 04:53:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2002-02-24T04:53:11Z</dc:date>
    <item>
      <title>Checkbox backcolor ques</title>
      <link>https://forums.autodesk.com/t5/vba-forum/checkbox-backcolor-ques/m-p/349897#M76682</link>
      <description>does a check box have to be disabled to be able to set the backcolor to&lt;BR /&gt;
grey?&lt;BR /&gt;
&lt;BR /&gt;
in this ex. ASBCheck is a check box and ASBCenteredCheck is a check box&lt;BR /&gt;
&lt;BR /&gt;
Sub disable_asb()&lt;BR /&gt;
''''''''''''''''''''''''''this doesn't work - why not?????&lt;BR /&gt;
ASBCheck.BackColor = -2147483633&lt;BR /&gt;
'but this does work&lt;BR /&gt;
ASBCenteredCheck.Enabled = False&lt;BR /&gt;
ASBCenteredCheck.BackColor = -2147483633&lt;BR /&gt;
End Sub&lt;BR /&gt;
I don't want to disable ASBCheck but I want to grey it out when this sub is&lt;BR /&gt;
fired,&lt;BR /&gt;
I want to later be able to hit ASBCheck and have it call enable_asb&lt;BR /&gt;
&lt;BR /&gt;
Also, I see the colors in the properties box spelled like &amp;amp;H8000000F&amp;amp; but&lt;BR /&gt;
when I put that in a sub i get an error&lt;BR /&gt;
Is there a chart of color numbers in the help files somewhere? I've looked&lt;BR /&gt;
but cant find it.&lt;BR /&gt;
Also is there somewhere in the help that has info like the above question -&lt;BR /&gt;
I may be looking in the wrong place, I just haven't found hardly anything on&lt;BR /&gt;
form controls and have therefore been wasting bandwidth with my lame&lt;BR /&gt;
questions for the last couple days.  I'm afraid I'm going to wear out my&lt;BR /&gt;
welcome here.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any help&lt;BR /&gt;
Mark</description>
      <pubDate>Sat, 23 Feb 2002 08:49:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/checkbox-backcolor-ques/m-p/349897#M76682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-02-23T08:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Checkbox backcolor ques</title>
      <link>https://forums.autodesk.com/t5/vba-forum/checkbox-backcolor-ques/m-p/349898#M76683</link>
      <description>The number you enter isn't a matching color... Try VbRed, or VbGrey or if&lt;BR /&gt;
you do want to enter a number try this:&lt;BR /&gt;
&lt;BR /&gt;
 ChkBox.BackColor = &amp;amp;H8000000F&lt;BR /&gt;
&lt;BR /&gt;
This will set the color to grey.&lt;BR /&gt;
&lt;BR /&gt;
Joeri Tuyn&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"MP" &lt;NONENTITY&gt; wrote in message&lt;BR /&gt;
news:D80CADE70527456C2E1CB576D5B6155C@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; does a check box have to be disabled to be able to set the backcolor to&lt;BR /&gt;
&amp;gt; grey?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; in this ex. ASBCheck is a check box and ASBCenteredCheck is a check box&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Sub disable_asb()&lt;BR /&gt;
&amp;gt; ''''''''''''''''''''''''''this doesn't work - why not?????&lt;BR /&gt;
&amp;gt; ASBCheck.BackColor = -2147483633&lt;BR /&gt;
&amp;gt; 'but this does work&lt;BR /&gt;
&amp;gt; ASBCenteredCheck.Enabled = False&lt;BR /&gt;
&amp;gt; ASBCenteredCheck.BackColor = -2147483633&lt;BR /&gt;
&amp;gt; End Sub&lt;BR /&gt;
&amp;gt; I don't want to disable ASBCheck but I want to grey it out when this sub&lt;BR /&gt;
is&lt;BR /&gt;
&amp;gt; fired,&lt;BR /&gt;
&amp;gt; I want to later be able to hit ASBCheck and have it call enable_asb&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Also, I see the colors in the properties box spelled like &amp;amp;H8000000F&amp;amp; but&lt;BR /&gt;
&amp;gt; when I put that in a sub i get an error&lt;BR /&gt;
&amp;gt; Is there a chart of color numbers in the help files somewhere? I've looked&lt;BR /&gt;
&amp;gt; but cant find it.&lt;BR /&gt;
&amp;gt; Also is there somewhere in the help that has info like the above&lt;BR /&gt;
question -&lt;BR /&gt;
&amp;gt; I may be looking in the wrong place, I just haven't found hardly anything&lt;BR /&gt;
on&lt;BR /&gt;
&amp;gt; form controls and have therefore been wasting bandwidth with my lame&lt;BR /&gt;
&amp;gt; questions for the last couple days.  I'm afraid I'm going to wear out my&lt;BR /&gt;
&amp;gt; welcome here.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks for any help&lt;BR /&gt;
&amp;gt; Mark&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/NONENTITY&gt;</description>
      <pubDate>Sun, 24 Feb 2002 03:36:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/checkbox-backcolor-ques/m-p/349898#M76683</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-02-24T03:36:04Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/checkbox-backcolor-ques/m-p/349899#M76684</link>
      <description>Joeri Tuyn &lt;PERDASO&gt; wrote in message&lt;BR /&gt;
news:80B84AC74D412C9226AE0C6BBF42B77E@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; The number you enter isn't a matching color... Try VbRed, or VbGrey or if&lt;BR /&gt;
&amp;gt; you do want to enter a number try this:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;  ChkBox.BackColor = &amp;amp;H8000000F&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; This will set the color to grey.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Joeri Tuyn&lt;BR /&gt;
Hi Joeri,&lt;BR /&gt;
Thanks for responding.&lt;BR /&gt;
Are you possibly working in VB? I'm in VBA at the moment and I get compile&lt;BR /&gt;
error variable not defined with this line:&lt;BR /&gt;
Const ColorOff = vbgrey&lt;BR /&gt;
'and the same error with&lt;BR /&gt;
Dim coloroff As Long&lt;BR /&gt;
coloroff = vbgrey&lt;BR /&gt;
&lt;BR /&gt;
'however all of these work fine&lt;BR /&gt;
Const ColorOn = -2147483643&lt;BR /&gt;
Const ColorOff = -2147483633&lt;BR /&gt;
Const ColorOff = &amp;amp;H8000000F&lt;BR /&gt;
&lt;BR /&gt;
'this is being called like&lt;BR /&gt;
ChkBox.BackColor = ColorOff&lt;BR /&gt;
&lt;BR /&gt;
what I found was that a checkbox or option button has to be disabled before&lt;BR /&gt;
the background can be set to grey.&lt;BR /&gt;
whereas a textbox can have a grey background and still be enabled.  Don't&lt;BR /&gt;
know why that is, and I wouldn't mind being able to grey a checkbox when&lt;BR /&gt;
it's unchecked but still enabled but hey, I can't have everything. :-)~&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the help&lt;BR /&gt;
Mark&lt;/PERDASO&gt;</description>
      <pubDate>Sun, 24 Feb 2002 04:53:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/checkbox-backcolor-ques/m-p/349899#M76684</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-02-24T04:53:11Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/checkbox-backcolor-ques/m-p/349900#M76685</link>
      <description>try vbgray with an "a"&lt;BR /&gt;
&lt;BR /&gt;
"MP" &lt;NONENTITY&gt; wrote in message&lt;BR /&gt;
news:3D55F293FA61924549BE0CABE709DF4D@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Joeri Tuyn &lt;PERDASO&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:80B84AC74D412C9226AE0C6BBF42B77E@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; The number you enter isn't a matching color... Try VbRed, or VbGrey or&lt;BR /&gt;
if&lt;BR /&gt;
&amp;gt; &amp;gt; you do want to enter a number try this:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;  ChkBox.BackColor = &amp;amp;H8000000F&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; This will set the color to grey.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Joeri Tuyn&lt;BR /&gt;
&amp;gt; Hi Joeri,&lt;BR /&gt;
&amp;gt; Thanks for responding.&lt;BR /&gt;
&amp;gt; Are you possibly working in VB? I'm in VBA at the moment and I get compile&lt;BR /&gt;
&amp;gt; error variable not defined with this line:&lt;BR /&gt;
&amp;gt; Const ColorOff = vbgrey&lt;BR /&gt;
&amp;gt; 'and the same error with&lt;BR /&gt;
&amp;gt; Dim coloroff As Long&lt;BR /&gt;
&amp;gt; coloroff = vbgrey&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; 'however all of these work fine&lt;BR /&gt;
&amp;gt; Const ColorOn = -2147483643&lt;BR /&gt;
&amp;gt; Const ColorOff = -2147483633&lt;BR /&gt;
&amp;gt; Const ColorOff = &amp;amp;H8000000F&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; 'this is being called like&lt;BR /&gt;
&amp;gt; ChkBox.BackColor = ColorOff&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; what I found was that a checkbox or option button has to be disabled&lt;BR /&gt;
before&lt;BR /&gt;
&amp;gt; the background can be set to grey.&lt;BR /&gt;
&amp;gt; whereas a textbox can have a grey background and still be enabled.  Don't&lt;BR /&gt;
&amp;gt; know why that is, and I wouldn't mind being able to grey a checkbox when&lt;BR /&gt;
&amp;gt; it's unchecked but still enabled but hey, I can't have everything. :-)~&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks for the help&lt;BR /&gt;
&amp;gt; Mark&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/PERDASO&gt;&lt;/NONENTITY&gt;</description>
      <pubDate>Sun, 24 Feb 2002 06:46:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/checkbox-backcolor-ques/m-p/349900#M76685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-02-24T06:46:12Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/checkbox-backcolor-ques/m-p/349901#M76686</link>
      <description>Glen Albert &lt;GLEN.ALBERT.&gt; wrote in message&lt;BR /&gt;
news:5014407564D6CE722CCC0BE89B40FBB2@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; try vbgray with an "a"&lt;BR /&gt;
Glen,&lt;BR /&gt;
Maybe my machine is worn out. I get variable undefined with VBGray and also&lt;BR /&gt;
with VBGrey.&lt;BR /&gt;
using an integer works however. as does the weird &amp;amp;H thing - what's up with&lt;BR /&gt;
that anyway? Is that a hex number or a reference to a memory location?&lt;BR /&gt;
thanks.&lt;BR /&gt;
Mark&lt;/GLEN.ALBERT.&gt;</description>
      <pubDate>Sun, 24 Feb 2002 11:53:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/checkbox-backcolor-ques/m-p/349901#M76686</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-02-24T11:53:46Z</dc:date>
    </item>
  </channel>
</rss>

