Open two existing word files from excel
问题 Hi I'm trying to write code to use excel to work with two existing word documents but I keep getting OLE errors. This is just the start but it keeps crashing. What am I doing wrong? Sub BoQtoWord() Dim Word As Object Dim WordDoc As Object Dim WordDoc1 As Object Dim StdSpec As String Dim NewSpec As String StdSpec = Application.GetOpenFilename() Set Word = CreateObject("Word.Application") Set WordDoc = Word.Documents.Open(StdSpec) Sheet1.Range ("A1").Value = StdSpec NewSpec = Application