Forum Discussion
750ml
Aug 20, 2021Copper Contributor
Embedding a picture with breaking links does not work
Apologies in advance if I don't format this discussion properly. I'm a bit of a newbie to forums. I've automated (still prototyping) some expense report procedures. One requirement is to attach...
- Aug 20, 2021
Change
Set Ol = ActiveSheet.OLEObjects.Add(Filename:=fnameAndPath, Link:=False, DisplayAsIcon:=False)
to
ActiveSheet.Shapes.AddPicture Filename:=fnameAndPath, LinktoFile:=False, _ SaveWithDocument:=True, Left:=10, Top:=10, Width:=400, Height:=300
Adjust the position and size as needed.
HansVogelaar
Aug 20, 2021MVP
Change
Set Ol = ActiveSheet.OLEObjects.Add(Filename:=fnameAndPath, Link:=False, DisplayAsIcon:=False)
to
ActiveSheet.Shapes.AddPicture Filename:=fnameAndPath, LinktoFile:=False, _
SaveWithDocument:=True, Left:=10, Top:=10, Width:=400, Height:=300
Adjust the position and size as needed.
- 750mlAug 20, 2021Copper Contributor
Thanks for the help - I'd already begun going down the "addpicture" path for a bit. I'll test