Jaymond Flurrie
Well-known Member
- Joined
- Sep 22, 2008
- Messages
- 921
- Office Version
- 365
- Platform
- Windows
I have inserted a picture into a sheet, just by using Insert -> Picture (In Excel 2007). Now I have the picture there, I have formatted it properly and it looks totally fine. It's also the only picture in the whole workbook, has name MyPicture.
How do I make it dynamic? I mean, my user decides to change the picture I used as the source picture (say, C:\pic.jpg) and I want this picture in the sheet to be linked so that it check itself from the file location, say, everytime I open the workbook.
I know how to create code that is based on events, so really, what I'm looking for is the correct property and the way to change it. Something like:
How do I make it dynamic? I mean, my user decides to change the picture I used as the source picture (say, C:\pic.jpg) and I want this picture in the sheet to be linked so that it check itself from the file location, say, everytime I open the workbook.
I know how to create code that is based on events, so really, what I'm looking for is the correct property and the way to change it. Something like:
Code:
ActiveSheet.Shapes(1).FileSource = "C:\pic.jpg"