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: [email protected]
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

Reply via email to