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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top