[Solved] Macro function for Path Name

Discuss the spreadsheet application
Post Reply
Zeko
Posts: 14
Joined: Mon Jul 14, 2008 5:23 pm

[Solved] Macro function for Path Name

Post by Zeko »

I'm a new member and I'm writing a macro where I need to access the Full Path Name of the current Calc sheet. Is there a function to do this? I'm storing sheets in different user folders so I need this so the macro can access the user's name automatically.
Any help would be appreciated. Vista OS.
Last edited by Zeko on Fri Jul 18, 2008 5:29 am, edited 1 time in total.
OOo 2.4.X on MS Windows Vista
JohnV
Volunteer
Posts: 1585
Joined: Mon Oct 08, 2007 1:32 am
Location: Kentucky, USA

Re: Macro function for Path Name

Post by JohnV »

Returns a blank string for an unsaved file, otherwise the full path and file name.

Code: Select all

MsgBox ThisComponent.getURL
Zeko
Posts: 14
Joined: Mon Jul 14, 2008 5:23 pm

Re: Macro function for Path Name

Post by Zeko »

Thanks John. Much appreciated. Solved.
OOo 2.4.X on MS Windows Vista
Post Reply