how to write a macro that copies content on one doc to another

I want to write a macro in Libreoffice Basic that opens 2 writer documents and then copies the content of one doc into the second.
Will be happy to get help