[Libreoffice-bugs] [Bug 123005] FILEOPEN: Error on creating getCurrentController().getActiveSheet() for basic script from location=document ?

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Jan 30 17:33:19 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=123005

--- Comment #9 from 千田 <aataka8 at gmail.com> ---
(In reply to Regina Henschel from comment #2)
> 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?

[[
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
))

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190130/df711df8/attachment.html>


More information about the Libreoffice-bugs mailing list