Results 1 to 2 of 2

Thread: Method 'Picture' of object 'IImage' failed

  1. #1

    Thread Starter
    Addicted Member epod69's Avatar
    Join Date
    Feb 2005
    Location
    Cambridge, WI - USA
    Posts
    239

    Method 'Picture' of object 'IImage' failed

    Anyone ever get this error?:
    Method 'Picture' of object 'IImage' failed
    Here is the code that I am getting the error on:
    VB Code:
    1. Word.Documents("quote.doc").imgCase.Picture = PicCasea
    I must be doing something wrong in trying to reference to something in word because the following code does work from excel:
    VB Code:
    1. imgCase.Picture = PicCasea
    Anyone know what I am doing wrong with the first code? Thanks all for the help!!

  2. #2

    Thread Starter
    Addicted Member epod69's Avatar
    Join Date
    Feb 2005
    Location
    Cambridge, WI - USA
    Posts
    239

    Re: Method 'Picture' of object 'IImage' failed

    Hi again, I figured if someone wanted to take a look at the code their selfs, it might help better explain what is going on. I have attached a zip file that contains my project I am working on. (If opening the file with winzip, make sure to view files by folder and extract it that way, because the parts.xls and the quote.doc files have to be in the same folder and the Aria.jpg has to be in a sub folder called pics)

    Also, Quote Gen2.zip must be renamed to Quote Gen.z01

    So, if you open the parts.xls and click on the generate quote button, and then click on the create quote button, that is where I am getting the errors. So if someone could glance at the code quick which is generating the error, that would be great!! Thanks everyone for the help!!!
    Attached Files Attached Files

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