Macros in LibreOffice

I want to Create fresh Macros in LibreOffice and Created macro should work in MS Office as well as in LibreOffice.