Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to write macro to set page margins and orientation

I need to frequently open a large number of .txt files and easily change the default page margins and orientation. A similar previous question was closed as irrelevant. The suggestion was to put a page style in the default template. This does not work for me since the .txt files are not opened with the default template. I have an answer and will post the code.