How do Word objects efficiently and efficiently select

  
Word objects in batches and efficiently? Many times, we need to select certain objects in batches under the Word interface. For example, an object whose style is title 1 or title, if manually pressed by pressing the Ctrl key, is both cumbersome and easy to miss. In fact, there are many tricks for selecting specific objects in batches. Here is an example of selecting an object in the document whose style is "Title 4". 1. Use the “Select” function to first select any object whose style is “Title 4” by dragging and dropping with the mouse, and switch to the “Start” tab, as shown in Figure 1, in "Edit" The function group selects “ select → select the similar format text & rdquo;, after execution, you can immediately select all the objects in the current document as "title 4", then how to operate, I believe you do not need to introduce more It is. 2. Use the VBA code to press the “Alt+F11” key combination to open the Microsoft Visual Basic for Applications window, select “Insert → Module”, insert a blank module in the right pane, and manually input or paste. The following code (Figure 2), (code file address: pan.baidu.com/s/1o68XbLK) 3. Use “ find & rdquo; function implementation If you think the VBA code is more complex, then you can use the "look up" function Implementation: Press the “Ctrl+F” key combination to open the “ find and replace → find & rdquo; dialog box, click the "More" button to switch to the advanced search mode, click the "left" format ” button, select "style" in the pop-up menu, this will pop up "look up style" dialog box, select "> title 4" in the list, return to the search dialog after confirmation, click “ read highlight ” The inverted triangle arrow on the right, select “ all highlights & rdquo;, will soon be able to put all the styles of the current document as “ title 4 & rdquo; Department highlighted (Figure 3), or you can click & ldquo; the next item to find & rdquo; inverted triangle arrow to the right to select & ldquo; the current document & rdquo; directly selected. Tip: If you need to modify the format of some specific objects in batches, such as font, color, background color, you can use the "replace" command to achieve, the specific operation is not introduced here. This article comes from [System Home] www.xp85.com
Copyright © Windows knowledge All Rights Reserved