[Libreoffice-bugs] [Bug 141667] [Calc] ThisComponent.CurrentController.ShowGrid => affects the grid of all sheets, but not the active one (inconsistent behavior)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Apr 14 18:06:59 UTC 2021


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

--- Comment #2 from himajin100000 at gmail.com ---
What if you run?

Option Explicit

Sub Macro1()

        Dim dispatchhelper As com.sun.star.frame.XDispatchHelper
        dispatchhelper = createUnoService("com.sun.star.frame.DispatchHelper")

        rem
----------------------------------------------------------------------
        dispatchhelper.executeDispatch(ThisComponent.CurrentController.Frame,
".uno:ToggleSheetGrid", "", 0, Array())


end sub

-- 
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/20210414/aa981267/attachment.htm>


More information about the Libreoffice-bugs mailing list