von sambucus » Fr, 10.10.2008 16:02
Leider nein.
Hier ist mein Macro in der start.odt Datei:
Global pfad As String
sub PfadFinden
If (Not GlobalScope.BasicLibraries.isLibraryLoaded("Tools")) Then
GlobalScope.BasicLibraries.LoadLibrary("Tools")
End If
pfad = DirectoryNameoutofPath((ThisComponent.getUrl()), "/")
end sub
Und hier ist mein Macro in der ziel.ots (Link geht auf eine Vorlage)Datei:
Global pfad As String
Sub test
print pfad
End Sub
Die Variable "pfad" ist leer.
Leider nein.
Hier ist mein Macro in der start.odt Datei:
Global pfad As String
sub PfadFinden
If (Not GlobalScope.BasicLibraries.isLibraryLoaded("Tools")) Then
GlobalScope.BasicLibraries.LoadLibrary("Tools")
End If
pfad = DirectoryNameoutofPath((ThisComponent.getUrl()), "/")
end sub
Und hier ist mein Macro in der ziel.ots (Link geht auf eine Vorlage)Datei:
Global pfad As String
Sub test
print pfad
End Sub
Die Variable "pfad" ist leer.