parkfairfax
Programmer
When I run the following code I get an error '91' " Object Variable or with block variable not set". Can anyone please give me a clue as to what I'm missing here. Thanks, GM
Private Sub Command12_Click()
Set appword = CreateObject("Word.Application" '
appword.Visible = True
strdoc = "a:\" & a ' where a is a variable
appword.Documents.Open (strdoc)
ActiveDocument.Select
With Selection.Find
.....(some text) {this is a routine that works, just get past the selection.find statement is the problem for me}
End Sub
Private Sub Command12_Click()
Set appword = CreateObject("Word.Application" '
appword.Visible = True
strdoc = "a:\" & a ' where a is a variable
appword.Documents.Open (strdoc)
ActiveDocument.Select
With Selection.Find
.....(some text) {this is a routine that works, just get past the selection.find statement is the problem for me}
End Sub