<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:andreas.heinisch@yahoo.de" title="Andreas Heinisch <andreas.heinisch@yahoo.de>"> <span class="fn">Andreas Heinisch</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTABUG - Colorize Cells"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=142727">bug 142727</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>NOTABUG
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTABUG - Colorize Cells"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=142727#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTABUG - Colorize Cells"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=142727">bug 142727</a>
              from <span class="vcard"><a class="email" href="mailto:andreas.heinisch@yahoo.de" title="Andreas Heinisch <andreas.heinisch@yahoo.de>"> <span class="fn">Andreas Heinisch</span></a>
</span></b>
        <pre>So I checked for the exact reason of this bug. In <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - BASIC: Data Type Characters with literals don't affect resulting value type"
   href="show_bug.cgi?id=130476">Bug 130476</a>, we changed the
behaviour of the hex literals. So in &H00FF00 preceeding zeros are ignored and 
the resulting number is converted to an int, which leads to -256, which is
obviously not a color.

However, if you cast the literal to a long by adding & at the end (&H00FF00&),
the value is preserved as long and the cell color gets the correct value.

So imho not a bug.

You can just change your lines from:
Tabelle.getCellbyPosition(6,l).CellBackcolor = &H00FF00
to:
Tabelle.getCellbyPosition(6,l).CellBackcolor = &H00FF00&</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>