How to add a text in existing .docx file on desired location
问题 I want to open an existing .docx file and insert some text in second paragraph. Private Sub insertText() Dim WordApp As New Microsoft.Office.Interop.Word.Application Dim aDoc As Microsoft.Office.Interop.Word.Document = WordApp.Documents.Open("C:\File1.docx") Dim RNG As Microsoft.Office.Interop.Word.Range() end sub Now what should I write to insert some text in second para ?? Any help will be greatly appreciated. Thanks in advance. 回答1: You can use Application.Selection.TypeText() for that: