![]() ![]() Rather, it’s displaying the styled text–it only seems to be deciding between the two subtitles. In this case, the field isn’t deciding which subtitle to display. The macro makes the decision the field follows suit. If you’d like to read more about fields then display the found subtitle and nothing, accordingly. My examples are usually straightforward and simple, but this time, I’m combining the conditional example from last month’s article with a repeating content example because together, they provide an interesting real-world scenario. You won’t see the field’s results in the browser, but it will print. However, the browser edition supports fields. You can’t run VBA code in the browser editions, nor can you use the browser edition to insert a field. If you want to know how the original document works, read the above linked article first. The download contains the files for the earlier article and the completed documents for this article. You can use your own document or download the demonstration. I’m using Word 2016 on a Windows 10 64-bit system, but the previous article’s code will run in older versions. How to Use Section Breaks to Control Formatting in Word How to Hide and Handle Zero Values in an Excel Chart More about Softwareįive Methods to Insert a Checkmark Into Microsoft Office Products We all want more efficient ways to maintain content. It’s not the same problem, but the goal is similar. This time, we’re going to look at a similar solution that repeats content throughout a document using a field. It makes it easy to maintain shared content in a source document, while generating multiple custom documents as needed. Hope these insights help with your project.Last month’s article How to use prefix tags and VBA to generate conditional content in Word documents showed a simple technique for displaying conditional content. Note that the cross references don't refer to these bookmarks at all just to the "master". ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |