I have the following codes
Sub DocSearch() Dim wdApp As Object, wdDoc As Object Set wdApp = CreateObject("word.application") wdApp.Visible = True Set