Here is the VBA code from Macro Recorder:
Sub InsertObject() ActiveSheet.OLEObjects.Add(Filename:="C:\Placeholder.txt", _ Link:=False, DisplayAsIcon:=True, IconFileName:= _ "C:\Windows\system32\packager.dll", IconIndex:=0, IconLabel:= _ "C:\Placeholder.txt").Select End Sub
Also check out this question: Paste files into Excel using Apache POI
theodore
source share