<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - thisComponent is not valid during "Open Document" at startup in non-document macro"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=92770#c11">Comment # 11</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - thisComponent is not valid during "Open Document" at startup in non-document macro"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=92770">bug 92770</a>
              from <span class="vcard"><a class="email" href="mailto:lionel@mamane.lu" title="Lionel Elie Mamane <lionel@mamane.lu>"> <span class="fn">Lionel Elie Mamane</span></a>
</span></b>
        <pre>(In reply to Buovjaga from <a href="show_bug.cgi?id=92770#c10">comment #10</a>)
<span class="quote">> Tried with Xray 5.2. It works for me: Macro in "My Macros": True</span >

<span class="quote">> Could it be this work fixed it: <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - xray ThisComponent no longer works"
   href="show_bug.cgi?id=105735">bug 105735</a> / <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - xray ThisComponent no longer works, take two"
   href="show_bug.cgi?id=107029">bug 107029</a> ?</span >

>From reading these bugs, I think not.

Retested and reproduced with

Version: 5.2.5.1
Build ID: 1:5.2.5-2
CPU Threads: 8; OS Version: Linux 4.9; UI Render: default; VCL: gtk3; 
Locale: en-GB (en_GB.utf8); Calc: group

Version: 5.3.4.0.0+
Build ID: (Lionel's development build; updated to
 commit 8501821f3b5ad541c40b5465aab000a6960b97ba
 Author:     Katarina Behrens <<a href="mailto:Katarina.Behrens@cib.de">Katarina.Behrens@cib.de</a>>
 AuthorDate: Wed May 3 16:55:00 2017 +0200
 Commit:     Caolán McNamara <<a href="mailto:caolanm@redhat.com">caolanm@redhat.com</a>>
 CommitDate: Tue May 9 09:50:21 2017 +0200)
CPU Threads: 8; OS Version: Linux 4.9; UI Render: default; VCL: gtk3; Layout
Engine: new;
Locale: en-GB (en_GB.utf8); Calc: group

but NOT reproduced with any of:

Version: 5.3.4.0.0+
Build ID: 5756d3d5bd2175335ac302aaa806fd5f2277f564
CPU Threads: 8; OS Version: Linux 4.9; UI Render: default; VCL: gtk2; Layout
Engine: new; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:libreoffice-5-3, Time:
2017-05-19_06:34:54
Locale: en-GB (en_GB.utf8); Calc: group

Version: 5.3.3.2
Build ID: 3d9a8b4b4e538a85e0782bd6c2d430bafe583448
CPU Threads: 8; OS Version: Linux 4.9; UI Render: default; VCL: gtk2; Layout
Engine: new; 
Locale: en-GB (en_GB.utf8); Calc: group

Version: 5.3.2.2
Build ID: 6cd4f1ef626f15116896b1d8e1398b56da0d0ee1
CPU Threads: 8; OS Version: Linux 4.9; UI Render: default; VCL: gtk2; Layout
Engine: new; 
Locale: en-GB (en_GB.utf8); Calc: group

Version: 5.5.0.0.alpha0+
Build ID: d880df3a44497cdec49017538a9d38d48e543bad
CPU threads: 8; OS: Linux 4.9; UI render: default; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time:
2017-05-19_07:51:21
Locale: en-GB (en_GB.utf8); Calc: group


Hmm... Might be linked to gtk3, or might be fixed. More testing needed.</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>