Ask Your Question
0

Save as Word doc

asked 2018-10-04 17:56:58 +0200

pauld gravatar image

Is there a way that I can add "Save as Word docx" to my Writer toolbar in the same way I can add an "Export to PDF" icon?

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
1

answered 2018-10-05 06:48:52 +0200

KH gravatar image

There is no such icon available in the Customize menu (Tools > Customize > Toolbars). It might be possible to write a macro to do this, but I don't know for sure.

Depending on how you intend to use it, adding "Save As" or "Export" to the toolbar might get you half way.

edit flag offensive delete link more
0

answered 2018-10-05 09:08:53 +0200

gabix gravatar image

Here is a macro that I use to export from Writer/Calc/Impress to Microsoft's X-d formats. I don't remember who is the author of the original code, I just modified it. Warning: it fails on spreadsheet and presentation files (I am not skilled enough to understand the problem). However, it does export from Writer to DOCX.

https://pastebin.com/jQhVGvbB

edit flag offensive delete link more
0

answered 2018-10-05 15:10:48 +0200

pauld gravatar image

Thanks so much, gabix. I've not used macros before but gave it a try! When I try to run it I get a popup box that says "BASIC runtime error. Argument is not optional." Now, I'm not sure if it has anything to do with it but I wasn't sure what to do with the second section of code headed by "RAW Paste Data". BTW I'm using a Mac and I'm running LibreOffice v6.1.2.1. Cheers

edit flag offensive delete link more

Comments

Paste the code from that RAW paste data section because the fancy colored code may contain some markup artifacts causing the error. And repost it as a comment because it is not an answer.

gabix gravatar imagegabix ( 2018-10-05 15:16:50 +0200 )edit

Please excuse my ignorance but where do I paste this code? At the end of the other code?

pauld gravatar imagepauld ( 2018-10-05 15:20:07 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-10-04 17:56:58 +0200

Seen: 101 times

Last updated: Oct 05 '18