OpenOfficeでマクロの記録の構文をペーストしてみました。
残念ながら、最初から自分では書くことはできませんから、OpenOfficeが作成したものです。
Sub Main
End Sub
sub date
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 = "NumberFormatValue"
args1(0).Value = 51
dispatcher.executeDispatch(document, ".uno:NumberFormatValue", "", 0, args1())
end sub
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
