<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN: Error on creating getCurrentController().getActiveSheet() for basic script from location=document ?"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=123005#c9">Comment # 9</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN: Error on creating getCurrentController().getActiveSheet() for basic script from location=document ?"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=123005">bug 123005</a>
from <span class="vcard"><a class="email" href="mailto:aataka8@gmail.com" title="千田 <aataka8@gmail.com>"> <span class="fn">千田</span></a>
</span></b>
<pre>(In reply to Regina Henschel from <a href="show_bug.cgi?id=123005#c2">comment #2</a>)
<span class="quote">> Where is your macro located? Inside a document or in "My Macros & Dialogs"
> library 'Standard' or in a different library or somewhere else?
> When is your macro called?</span >
[[
in "My Macros & Dialogs" library 'Standard';
it's called on loading a file which calls macro.
At Version: 6.1.4.2
err:423
次のプロパティまたはメソッドが見つかりません:getCurrentController。
]]
At 6.2.0.2
[My Macros & Dialogs[
error-line:86, err:423
Property or method not found: CurrentController.
error-line:34, err:423
Property or method not found: getCurrentController.
]]
At 6.2.0.2
[file-macro[
error-line:86, err:91
Object variable not set.
]]
((''source
Dim oDoc, oCtrl, oSheet As Object
oDoc = ThisComponent
oCtrl = oDoc.getCurrentController() REM <==== error line:34
oSheet = oCtrl.ActiveSheet
''~~~ another Function ~~~~~
Dim oDoc, oCtrl, oSheet As Object
oSheet = ThisComponent.CurrentController.ActiveSheet REM <==== error line:86
))</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>