<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 - macros dont work as expected. calc crashes on running the macros in file"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=134487">134487</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>macros dont work as expected. calc crashes on running the macros in file
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.4.2.2 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>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>testing1237a-c@yahoo.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
i am attaching a copy of a simple invoicing excel sheet with macros. on first
start up, the file shows 

BASIC syntax error.
Expected: ,.

then, there is a button on "home" sheet, "add business logo to invoices" that
macro fails because the sheet has hardcoded "ActivePrinter:="Microsoft Print to
PDF"" and it fails on that. removing that line, error that shows is 
"BASIC runtime error.
'423'
GetOpenFilename"

"fname = Application.GetOpenFilename(filefilter:="Images (*.jpg),*.jpg",
Title:="Select Logo")" the code that shows the problem

the sheet has further problems like 
"BASIC runtime error.
'423'
RemoveDuplicates"


Steps to Reproduce:
1. open the file and try to work with buttons/forms

Actual Results:
<a href="https://drive.google.com/open?id=1D6b8CQu1ph9WDpSkxQIqwsUGlxeuEz19">https://drive.google.com/open?id=1D6b8CQu1ph9WDpSkxQIqwsUGlxeuEz19</a>
download link to file 

<a href="https://www.youtube.com/watch?v=0jhN-i4vgpQ">https://www.youtube.com/watch?v=0jhN-i4vgpQ</a>

link to video by the creator of the file showing the file working in excel but
not in LO calc.

Expected Results:
the excel file should work as shown in the youtube video


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.4.2.2
Build ID: 4e471d8c02c9c90f512f7f9ead8875b57fcb1ec3
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: kf5; 
Locale: en-IN (en_IN.UTF-8); UI-Language: en-US
Calc: threaded</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>