InsertAutoText 表达式是必需的。 一个代表 Range 对象的变量。 备注 如果Word 找到一个匹配项,InsertAutoText 则插入该“自动图文集”词条来替换该文本。 如果 Word 未能找到匹配项,将发生错误。 将Insert 方法与 AutoTextEntry 对象一起使用可插入特定的自动图文集条目。 示例 本示例插入与当前选定
InsertAutoText 需要expression。 代表 Range 物件的變數。 註解 如果Word 找到相符的項目,InsertAutoText 就會插入自動圖文集項目,以便取代該文字。 如果 Word 找不到相符的項目,就會發生錯誤。 使用Insert 方法搭配 AutoTextEntry 物件來插入特定的自動圖文集專案。 範例 這則範例會插入與選取項目周圍文字相符的自動...
First of all type out the phrase, then select it and click to the Insert tab > Quick Parts (in the Text group) > AutoText > Save Selection to AutoText Gallery. When theCreate New Building Blockwindow opens, we must type something into the Name box. The name is what Word will use t...
AutoText is a common type of building block that stores text and graphics. You can use the Building Blocks Organizer to find or edit a building block. To open the Quick Part Gallery, on the Insert tab, in the Text group, click Quick Parts. What do you want to...
Range Insert (Microsoft.Office.Interop.Word.Range Where, ref object RichText); 参数 Where Range "自动图文集"词条的位置。 RichText Object 是否插入具有原始格式的“自动图文集”条目。 返回 Range 注解 如果不想替换区域,请在使用 Collapse(Object) 此方法之前使用 方法。 适用于 产品版本 Word pri...
When you create an "AddressLayout" AutoText entry, the "AddressLayout" AutoText is ignored when you click Insert Address in the Envelopes and Labels dialog box. When you click Insert Address in the Envelopes and Labels dialog box, the contact that you select...
Microsoft.Office.Interop.Word.dll Attempts to match the text in the specified range or the text surrounding the range with an existing AutoText entry name. C# publicvoidInsertAutoText(); Remarks If any such match is found,InsertAutoTextinserts the AutoText entry to replace that text. If a ...
Microsoft.Office.Tools.Word Assembly: Microsoft.Office.Tools.Word.dll Attempts to match the text in theBookmarkcontrol with an existing AutoText entry name. C# publicvoidInsertAutoText(); Remarks If any such match is found,InsertAutoTextinserts the AutoText entry to replace that text. If a ma...
Is there any way to insert an AutoText entry using a script? You bet there is. First, we need to create an instance of the Word Range object; that’s simply so we can specify a location in the document where the AutoText entry should be inserted. Here’s code that creates an ...
On my old version of Word for Mac, I could easily create text blocks for insertion to documents, like letterhead names and addresses, etc and then save them to insert again into a new document. Can't figure out how to save the new text block in Word (v16.22) and then where to find...