I have seen many references to doing something like the following to insert a picture in Excel:
Set p = ActiveSheet.Pictures.Insert(PathToPicture)
Where can I find the canonical documentation for this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I can’t find this in the doco in VBA for Excel 2007… i have seen a few things go missing in the VBA doco between 2003 and 2007.
So my first suggestion is look in a copy of Excel or Access 2003 help files.
In the past i’ve used the Shapes collection for images and shapes, which is handy for iterating over them later on. Eg;
However you will need to know the size of the image, which may or may not be a problem.