Forum Discussion

750ml's avatar
750ml
Copper Contributor
Aug 20, 2021
Solved

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...
  • HansVogelaar's avatar
    Aug 20, 2021

    750ml 

    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.

Resources