<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 - activeworkbook.followhyperlink in macro throws error"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=134361">134361</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>activeworkbook.followhyperlink in macro throws error
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.4.4.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 have excel macro enabled workbooks that have activeworkbook.followhyperlink
vba command and my libreoffice calc throws 

BASIC syntax error: 
Unexpected symbol:address

<a href="https://docs.microsoft.com/en-us/office/vba/api/Excel.Workbook.FollowHyperlink">https://docs.microsoft.com/en-us/office/vba/api/Excel.Workbook.FollowHyperlink</a>

this link describes microsoft method of using this vba but LO does not work
well with this.


Steps to Reproduce:
open a file containing vba with a button


Rem Attribute VBA_ModuleType=VBAFormModule
Option VBASupport 1
Private Sub CommandButton1_Click()
ActiveWorkbook.FollowHyperlink _
Address:="<a href="https://www.microsoft.com/en-in/download/details.aspx?id=7">https://www.microsoft.com/en-in/download/details.aspx?id=7</a>"
End Sub



Actual Results:
BASIC syntax error.
Unexpected symbol: Address.

Expected Results:
link in the button should work. currently the only way to work on the file
containing this vba is to remove the line and then run


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>