Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hello,

sub CurrentFileLocation
    MsgBox ThisComponent.getLocation()
end sub

If this is run on a new unsaved document, the message will be empty. Works on different documents - i.e. Writer, Calc, etc.