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

In Writer Macros Basic, how do I put a string in a writer document as the full document?