I am using an Excel spreadsheet to fill in certain bookmarks in a Word document. I am trying to use the following, without success.
Without these lines, the macro operates as expected, opening and closing the Word aplication. However, as soon as this is introduced, I receive an error message (Run-time error 438 - Object does not support this property or method)
Could anybody point out where are I am going wrong?
Code:
Selection.GoTo What:=wdGoToBookmark, Name:="project"
Selection.TypeText Text:="xxx"
Without these lines, the macro operates as expected, opening and closing the Word aplication. However, as soon as this is introduced, I receive an error message (Run-time error 438 - Object does not support this property or method)
Could anybody point out where are I am going wrong?