<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:mikekaganski@hotmail.com" title="Mike Kaganski <mikekaganski@hotmail.com>"> <span class="fn">Mike Kaganski</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Formula cell used in macro with function EOMONTH() or FIN:MOIS() giving #NAME?"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=134032">bug 134032</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;">CC</td>
           <td>
                
           </td>
           <td>erack@redhat.com, olivier.hallot@libreoffice.org
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Formula cell used in macro with function EOMONTH() or FIN:MOIS() giving #NAME?"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=134032#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Formula cell used in macro with function EOMONTH() or FIN:MOIS() giving #NAME?"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=134032">bug 134032</a>
              from <span class="vcard"><a class="email" href="mailto:mikekaganski@hotmail.com" title="Mike Kaganski <mikekaganski@hotmail.com>"> <span class="fn">Mike Kaganski</span></a>
</span></b>
        <pre>It's best if you provide the spreadsheet with the macro that shows the problem.

However, the problem with EOMONTH is likely because it's actually an add-in
function, and thus its internal name (that is used when assigning/reading
cell's formula using get/setFormula()) is
"com.sun.star.sheet.addin.Analysis.getEomonth".

To test, put EOMONTH formula in A1, and call this:

<span class="quote">> sub getFormula
>   oCell = ThisComponent.Sheets(0).getCellByPosition(0,0)
>   msgBox oCell.getFormula()
> end sub</span >

It's OK that it needs you to use the locale-independent name like that
"com.sun.star.sheet.addin.Analysis.getEomonth" instead of user-visible
"EOMONTH" in setFormula; the problem is that the function is not mentioned as
add-in function in help [1], [2].

[1] <a href="https://help.libreoffice.org/6.4/en-US/text/scalc/01/04060111.html">https://help.libreoffice.org/6.4/en-US/text/scalc/01/04060111.html</a>
[2] <a href="https://help.libreoffice.org/6.4/en-US/text/scalc/01/func_eomonth.html">https://help.libreoffice.org/6.4/en-US/text/scalc/01/func_eomonth.html</a></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>