VB - Word and XP

I

ikke

Somewhere in my program I have a routine that opens a word template and
changes some of the words in that template (example: __Name is replaced by
the name). My program works fine on machines that have win2000, it worked
fine on machines with XP. Then I installed XP SP2 on 3 machines. Now, on 2
PC's the program stops executing at the commandline '.text = TeVervangen'
(TeVervangen is a stringvariable) Can somebody tell me what is wrong and
what I have to do to correct this problem?

This is the code wher the program stops

With myDoc.Content.Find
.text = TeVervangen
.Replacement.ClearFormatting
.Replacement.text = Door
.Execute Replace:=wdReplaceAll, Forward:=True, Wrap:=wdFindContinue
End With


(I am using VB 6.0, Office 2000 SP3 and XP pro SP2)

Thanks
 
Top