R
Ronn
I'm controlling a Word 2007 mail merge from Access 2007 via VBA code. The
merge works fine. As part of the same procedure, I want to find specific
text in the new merged Word document. Every time I try a "Find" command,
Access crashes -- no preliminary error message, just a crash to the "search
online for solution" dialog.
In my Access procedure, I've defined objWord as Word.Application, I've used
objWord to successflly execute the mail merge and then I want to find some
specific text in the resulting merged document using code like this:
objWord.Selection.Find.Execute "textToFind"
I've tried various Find options such as "Selection.Find.ClearFormatting" or
"With.Selection.Find" but every time the code gets to a Find operation
Access crashes.
Any thoughts on this? Thanks.
.... Ron
merge works fine. As part of the same procedure, I want to find specific
text in the new merged Word document. Every time I try a "Find" command,
Access crashes -- no preliminary error message, just a crash to the "search
online for solution" dialog.
In my Access procedure, I've defined objWord as Word.Application, I've used
objWord to successflly execute the mail merge and then I want to find some
specific text in the resulting merged document using code like this:
objWord.Selection.Find.Execute "textToFind"
I've tried various Find options such as "Selection.Find.ClearFormatting" or
"With.Selection.Find" but every time the code gets to a Find operation
Access crashes.
Any thoughts on this? Thanks.
.... Ron