;o)
]]>Díky za pomoc. Je to ono :-).
Může prosím někdo chybný text opravit ve seriálu "Malá makra ..."
Děkuji
Sub Main
doc = thisComponent
list = doc.sheets(0)
list.columns(0).Width = 2000
End Sub
sub SirkaSloupce_A
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 = "ToPoint"
args1(0).Value = "$List1.$A$1"
dispatcher.executeDispatch(document, ".uno:GoToCell", "", 0, args1())
rem ----------------------------------------------------------------------
dim args2(0) as new com.sun.star.beans.PropertyValue
args2(0).Name = "ColumnWidth"
args2(0).Value = 2000
dispatcher.executeDispatch(document, ".uno:ColumnWidth", "", 0, args2())
end sub
Sub Main
doc = thisComponent
list = doc.sheets(0)
list.columns(0).Weight = 2000
End Sub
Hlásí mi to chybu: Vlastnost nebo metoda nenalezena: Weight.
Nevíte v čem je problém?
Díky za pomoc.
_________________________________________________
Značím jako vyřešené
;o)
]]>