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:
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:
imgCase.Picture = PicCasea
Anyone know what I am doing wrong with the first code? Thanks all for the help!! :afrog:
2 Attachment(s)
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!!! :afrog: