openoffice-api mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schmidt <joe...@j-m-schmidt.de>
Subject Re: selecting more than one sheet (Calc / StarBasic)
Date Tue, 12 Aug 2014 16:09:23 GMT
> From: Bernard Marcelly [mailto:marcelly@club-internet.fr] 

> Dim dispatcher As Object, curWin As Object
> Dim args(0) As New com.sun.star.beans.PropertyValue
> 
> curWin = ThisComponent.CurrentController.Frame
> dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
> args(0).Name = "Tables"
> args(0).Value = Array(1,2,4) ' list of sheet numbers to select
> dispatcher.executeDispatch(curWin, ".uno:SelectTables", "", 0, args())

Works. Thank you.


Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscribe@openoffice.apache.org
For additional commands, e-mail: api-help@openoffice.apache.org


Mime
View raw message