[EMAIL PROTECTED] schreef:

Geachte gebruikers,
Kan iemand mij helpen aan een macro die het huidige path of de huidige
directory laat zien van een calc document?
Ik moet daarin namelijk een submap aanmaken en het document opslaan.
Bij voorbaat dank,
Jef



Jef,

uit het macrodocument van Andrew Pitonyak:
(beschikbaar op  http://www.pitonyak.org/AndrewMacro.sxw
<http://www.pitonyak.org/AndrewMacro.sxw>

*REM Author: Andrew Pitonyak*

*Sub DocumentFileNames*

*Dim oDoc*

*Dim sDocURL*

*oDoc = ThisComponent*

*If (Not GlobalScope.BasicLibraries.isLibraryLoaded("Tools")) Then*

*GlobalScope.BasicLibraries.LoadLibrary("Tools")*

*End If*

*If (oDoc.hasLocation()) Then*

*sDocURL = oDoc.getURL()*

*Print "Document Directory = " & DirectoryNameoutofPath(sDocURL, "/")*

*Print "Document File Name = " & FileNameoutofPath(sDocURL, "/")*

*End If*

*End Sub
*


*Voor info over macro's etc. kijk eens hier: http://www.oooforum.org/forum/viewforum.phtml?f=11

of een van de andere fora daar.*

--
DiGro

----------------------------------------------------------------------
Scanned for virus and spam with Norton Antivirus
----------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Antwoord per e-mail aan