These two lines of VBA-Code should already be there:Īdd the following lines in-between those two predefined function lines: Step 2 Coding our Macroīe sure that "Normal"->"Modules"->"NewMacros" is selected in the upper left tree-structure (like in the image) Click on "Edit" to open the coding window of our project. The name should appear in the list below. If you are not using Word 2010, try this.Ĭreate a new Macro: Enter a name for our Macro - let's say "PDF" - and click on "Create". All this can also be done by holding ALT and pressing F K M. Open the VBA menu by selecting the "Views" and selecting "Macros" -> "View Macros". For Office 2007 you'll need the PDF extension. This tutorial is based on Microsoft Office Professional Plus 2010, but works with other versions, as well.This article uses German interfaces, but the screenshots should be clear enough for all languages.We will modify our normal.dot Word-Template to include a VBA-Macro, which saves our file as PDF. The image on the right is what it will look like. The Macro we are going to write will literally save the file as PDF in the same directory and with the same filename as the opened document. We are going to use the function to create Macros, which are little 'programs' in Office applications. In this article, we're going to create an additional button in our Word toolbar which creates a PDF file of our loaded file with one simple click.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |