ich suche ein Makro für die Formatierung 0,00 €/m².
Wie bekomme ich das hin?
Folgende Code läuft nicht auf allen PC's.
Code: Alles auswählen
sub euro_pro_qm
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 = 108
dispatcher.executeDispatch(document, ".uno:NumberFormatValue", "", 0, args1())
end sub
Moderation,4: Betreff angepasst