excel how to attach a file to a cell code example
Example: how to insert file in excel cell
Click inside the cell of the spreadsheet where you want to insert the object.
On the Insert tab, in the Text group, click Object. Click the Create from
File tab. Click Browse, and select the file you want to insert.