Results 1 to 2 of 2

Thread: Method ~ of Object ~ Failed. Can anyone help?

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2006
    Posts
    52

    Method ~ of Object ~ Failed. Can anyone help?

    Hello all,

    I have written an application in VB6 that opens a word document (a template) and performs "find and replace" on data that i pass in. My application is used by external users who log on to our network via Citrix. A few of the users get the error message "Method ~ of Object ~ Failed" (error number -2147023113). The bit of code that this occurs is below:

    Do While wrdDoc.Content.Find.Execute( _
    FindText:="@" & strReplaceField & "@", _
    MatchCase:=False, _
    MatchWholeWord:=True, _
    ReplaceWith:=strReplacement, _
    Replace:=True)
    Loop

    As fas as i know, its nothing to do with Printer settings or anything, it just seems to be the Execute statement above. Anybody any ideas as to how i can prevent this?

    Much appreciated
    Nev

  2. #2
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926

    Re: Method ~ of Object ~ Failed. Can anyone help?

    Have a look at this
    Frans

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width