Date: prev next · Thread: first prev next last
2018 Archives by date, by thread · List index


Hello,I have a single LibreOffice Calc document opened in two windows (menu
Window->New Window). My document has different active sheets in each window.
The document contains a macro that scrolls the current sheet in the active
window to some position:
Sub
ScrollSheetThisComponent.getCurrentController().setFirstVisibleRow(10)End
Sub
If I put a button that executes the macro and if I press it on the first
window then it scrolls the sheet in the first window. How to get a reference
to the second window and scroll its active sheet? I need something like
this:
ThisComponent.getWindowByIndex(1).getCurrentController().setFirstVisibleRow(10)
Thank you!



--
Sent from: http://document-foundation-mail-archive.969070.n3.nabble.com/Users-f1639498.html
-- 
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.