<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - VBA FormatNumber function is unsupported"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=118218">118218</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>VBA FormatNumber function is unsupported
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>4.4.0.3 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Keywords</th>
          <td>filter:xlsx
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Calc
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>baron@caesar.elte.hu
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>108908
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=142832" name="attach_142832" title="Sample XLSM">attachment 142832</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=142832&action=edit" title="Sample XLSM">[details]</a></span>
Sample XLSM

Open the attached XLSM file. It contains a single macro call to FormatNumber
VBA function [1] inside a user function, also referenced from A1.
Recalculate the spreadsheet.

=> There's an error during macro execution. I assume FormatNumber isn't
supported.

BASIC runtime error.
'35'
FormatNumber

Observed using LO 6.1 beta1 & 4.4.0.3 / Windows 7.

[1]
<a href="https://msdn.microsoft.com/en-us/vba/language-reference-vba/articles/formatnumber-function">https://msdn.microsoft.com/en-us/vba/language-reference-vba/articles/formatnumber-function</a>
<a href="http://www.excelfunctions.net/vba-formatnumber-function.html">http://www.excelfunctions.net/vba-formatnumber-function.html</a></pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] Visual Basic for Applications (VBA) macro issues"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=108908">Bug 108908</a>] [META] Visual Basic for Applications (VBA) macro issues
              </li>
          </ul>
        </div>
        <br>

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

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