Run-time Error 4198 - Command Failed while using InsertFile

D

dineshmahadev

I have a piece of VBA code for MS Word as follows:
selection.Range.InsertFile ("localfilepath")

I am getting the error, "Run-time Error 4198 - Command Failed" whil
executing it in the MS WORD 2000. Click debug and then Select Run>Ru
Sub/Userform. It inserts very well.
The observation is that it fails for the first time and then it insert
any number files/any number of times.

The same piece of code works perfectly in MS Word XP/2002.

Please help me out of this problem
 
Top