von komma4 » Sa, 10.02.2007 09:02
Moin.
So kompliziert ist das nicht. Das sind Eigenschaften des
DocumentInfo-Objekts
In meiner Schublade findet sich das:
Code: Alles auswählen
Function CalcDoc_Modify_Date()
' work with DocInfo
With ThisComponent.DocumentInfo.ModifyDate
' set return format
' force month and day to two digits
sTemp = _
.Year & "-" & _
Format( .Month, "0#" ) & "-" & _
Format( .Day, "0#" )
End With
' assign func return value
CalcDoc_Modify_Date = sTemp
End Function
Speicherst Du diesen Code in einem BASIC-Modul der OOo-Standard-Bibliothek, dann steht Dir die Funktion auch in allen Tabellenblätter zur Verfügung.
Für den Einsatz von Daten als Feldern, blättere mal in meinen Beispielen (s.u.)
Hilft das?
Moin.
So kompliziert ist das nicht. Das sind Eigenschaften des [url=http://api.openoffice.org/docs/common/ref/com/sun/star/document/DocumentInfo.html]DocumentInfo[/url]-Objekts
In meiner Schublade findet sich das:
[code]Function CalcDoc_Modify_Date()
' work with DocInfo
With ThisComponent.DocumentInfo.ModifyDate
' set return format
' force month and day to two digits
sTemp = _
.Year & "-" & _
Format( .Month, "0#" ) & "-" & _
Format( .Day, "0#" )
End With
' assign func return value
CalcDoc_Modify_Date = sTemp
End Function[/code]
Speicherst Du diesen Code in einem BASIC-Modul der OOo-Standard-Bibliothek, dann steht Dir die Funktion auch in allen Tabellenblätter zur Verfügung.
Für den Einsatz von Daten als Feldern, blättere mal in meinen Beispielen (s.u.)
Hilft das?