I am using excel 2010 and I need to store images in an excel file (I mean, really store and not to have a link to an image".
Suppose I have an image in "C:\img.jpg".
I insert the image thru the menu (Insert/Image) and then close the excel file and delete the image. If I reopen the excel file I can see the image in it. This means the image is stored in it.
Since I want to execute this process I have recorded the macro getting the following code:
If I execute the above code and then save the excel file and delete the image, when I reopen the excel file instead of seeing the image I get an error message saying that the link to the image is wrong. It clear that in this case the image has not been stored but just the link to it.Please Login or Register to view this content.
Any idea about the way to store images using vba?
Bookmarks