Creating an HTML Version of a Memo
Because the memos will also be published on the company's intranet, one of Word's formatting themes can be used to provide the HTML formatting. A simple macro in a standard module can automate this procedure.
To create the macro, you need to open the code window of a standard module in the template. Because a standard module was added to the template for the definition of the btnOk-Clicked variable, all you have to do is to double-click the module to open the Code window.
Enter the macro shown in Listing 34.8. This macro begins by applying the Corporate theme to the document, changing its appearance for the intranet. The next section displays the Save As dialog box, after initializing the dialog box with a default ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access