"In previous OOoBasic crash course articles we've created a few
simple macros. If you're ready for more advanced stuff, let's
create a macro that allows you to save the currently opened
document in several formats. This macro can come in handy for
archiving purposes and for exchanging files with other users.
"For example, if you are not sure whether your peers are able to
read .odt files, you can export and send them a document in plain
text, Rich Text Format, or Word formats. Archiving documents in
different formats also allows you to ensure that you can open and
read them later on even if you don't have OpenOffice.org installed
on your machine..."