Using Macros basic, how do I put text string in a writer document as the full document?

Using LibreOffice Writer Macros basic, how do I put a text string in a document as the full document?