Macro to open folder (after exporting to pdf)

Hello
I have a (working) macro that exports a pdf version of my document (Writer) with a fixed path and name.

Can I use a macro to open the destination folder automatically after the export is done?
I’m on Windows

For example, my macro exports the doc to c:\temp\mydoc.pdf
I would like to open the *c:\temp* folder in Windows Explorer after saving the pdf.

Hello

calling shell ("C:\Windows\explorer.exe",1,"c:\temp") in your macro, should do what you intend.

Hope that helps.

If the answer helped to solve your problem, please click the check mark (:heavy_check_mark:) next to the answer.

Very simple and works. Thank you