So I needed a macro to switch to Normal view, select the entire document, and update the headers and footers and any other fields that needed updating, such as the page numbers which need updating after the Remove AllowPageBreakStyle macro runs. Click the name of the Field property (the custom property you. Now, if you want to insert this new document property (variable) into your manuscript, put your cursor where you want to place it (1) and, from the Insert menu, click Quick Parts > Field (2): The Field dialog appears: Click DocProperty. That’s because I have another APM that automatically opens the Word document in Page Layout view, and you can only update the headers and footers globally using Ctrl+A then F9 in Normal Layout view. Using a Custom Document Property as a Variable. One thing I noticed was that my headers and footers didn’t update with the custom values automatically on publishing. Here’s the AfterPublish Macro for that-substitute the Prop and Value parts with the names of the custom properties and their values, and add or delete the number you want making sure you update the numbers: Sub CustomProperty() This one adds a custom property called “Copyright” and populates it with “Company Name”: Sub CustomProperty()Ī _Įnd Sub APM 2: Add multiple custom document properties to the Word outputĪfter Reinhard shared that one, I wanted more! So I asked him if I could add multiple custom properties. APM 1: Add a single custom document property to the Word output To do this, I followed this MSDN article and came up with this code:using Word. NOTE: The underscores at the end of a line indicate that this line continues to the next these break indicators are there for display purposes only. I want to set some custom document properties of a word document I'm creating in my C code. Here’s the first AfterPublish Macro (APM) he shared with me and the list (there are more-keep reading!). And the very helpful Reinhard in Germany did! I’ve submitted an enhancement suggestion for this to Author-it Support, but in the meantime I posted to the Author-it User Group to see if anyone had a solution. You can change Title, Subject, Author, Company, Category, Keywords, Comments etc. Show the properties dialog box and editing. Find where is the panel custom edit for document properties in Microsoft Word 2010. For example: Author, Title, Subject, Category, Company, Keywords, etc. A month or so ago I discovered that if you set document properties on the Custom tab in your Author-it Word template ( File > Properties > Custom tab), then reference those properties in your template’s headers or footers, they DO NOT carry through. The document properties is also known as metadata that describe the details about the file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |