If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Run-time Error 4198 - Command Failed while using InsertFile

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-28-04, 01:53
DineshMahadev DineshMahadev is offline
Registered User
 
Join Date: Mar 2004
Posts: 2
Run-time Error 4198 - Command Failed while using InsertFile

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" while executing it in the MS WORD 2000. Click debug and then Select Run>Run Sub/Userform. It inserts very well.
The observation is that it fails for the first time and then it inserts 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.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On