<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Are sc/source/ui/vba/vbaapplications.cxx and
    vbahelper/source/vbahelper/vbahelper.cxx ONLY used for MS VBA
    compatibility, or does it also affect StarBasic etc?<br>
    <br>
    I have identified that the vbahelper function getCurrentDoc() is
    broken, causing bug 71248, and suggested a band-aid solution for it
    in the comments.  However, I don't know the larger implications of
    replacing getCurrentDoc with getThisExcelDoc.  In practice, THIS and
    CURRENT are likely the same thing, but perhaps the current
    implementation is necessary and working for someone...<br>
    <br>
    I'm still going to try to figure out how to properly fix
    "getCurrentDoc" but so far I don't really understand what it is
    doing.  If someone who actually knows how to program and submit
    patches could take over from this point, that would be great.<br>
    <br>
    suggested Band-aid fix:<br>
    <font color="#000099">uno::Reference< frame::XModel > 
      getCurrentExcelDoc( const uno::Reference<
      uno::XComponentContext >& xContext ) throw
      (uno::RuntimeException)<br>
      {<br>
          return </font><font color="#000099">getThisExcelDoc( xContext
      );</font><br>
    <font color="#000099">}<br>
    </font><br>
    Thanks,<br>
    Justin<br>
    <a class="moz-txt-link-freetext" href="https://bugs.freedesktop.org/show_bug.cgi?id=71248">https://bugs.freedesktop.org/show_bug.cgi?id=71248</a><br>
    <br>
  </body>
</html>