Post by 54admin, 2009-5-8, Views:575 1: 对项目添加引用,Microsoft Word 11.0 Object Library 2: 在程序中添加 using Word = Microsoft.Office.Interop.Word; 3: 程序中添加 Word.Application app = new Microsoft.Office.Interop.Word.Application(); //可以打开word程序 Word.Document doc =…
Sub setname() Dim I As Integer Dim pspname As String Dim pspnumber As String Dim path As String Dim srcPath As String Dim srcPath2 As String Dim wordApp As Object Dim wordDoc As Object Dim wordArange As Object Dim wordSelection As Object Dim ReplaceS…