Portál AbcLinuxu, 4. května 2025 23:09
Řešení dotazu:
sub kolo rem ---------------------------------------------------------------------- rem define variables dim document as object dim dispatcher as object rem ---------------------------------------------------------------------- rem get access to the document document = ThisComponent.CurrentController.Frame dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") rem ---------------------------------------------------------------------- dim args1(0) as new com.sun.star.beans.PropertyValue args1(0).Name = "StringName" args1(0).Value = "100" dispatcher.executeDispatch(document, ".uno:EnterString", "", 0, args1()) rem ---------------------------------------------------------------------- dim args2(0) as new com.sun.star.beans.PropertyValue args2(0).Name = "ToPoint" args2(0).Value = "$E$7" dispatcher.executeDispatch(document, ".uno:GoToCell", "", 0, args2()) rem ---------------------------------------------------------------------- dim args3(0) as new com.sun.star.beans.PropertyValue args3(0).Name = "StringName" args3(0).Value = "50" dispatcher.executeDispatch(document, ".uno:EnterString", "", 0, args3()) rem ---------------------------------------------------------------------- dim args4(1) as new com.sun.star.beans.PropertyValue args4(0).Name = "By" args4(0).Value = 1 args4(1).Name = "Sel" args4(1).Value = false dispatcher.executeDispatch(document, ".uno:GoRight", "", 0, args4()) end sub
Verze: 6.1.5.2 ID sestavení: 6.1.5.2-2.fc29 Vlákna CPU: 2; OS: Linux 4.20; Vykreslování UI: výchozí; VCL: gtk3; Národní prostředí: cs-CZ (cs_CZ.UTF-8); Calc: group threaded
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.