I am trying to get a full picture to upload onto a worksheet from its url. I have created a form where there is a file upload and I would like for it to show the image rather than a url. Is there a way to do this using office scripts?
Thank you!
I am trying to get a full picture to upload onto a worksheet from its url. I have created a form where there is a file upload and I would like for it to show the image rather than a url. Is there a way to do this using office scripts?
Thank you!
This sample shows how to add an image to a workbook from a URL: Add images to a workbook.
Essentially, you need to use fetch
to get the image information, convert it to a base64-encoded string, then use Worksheet.addImage to create an Excel shape storing the image.
Since you're using a form, you could create a Power Automate flow that runs the script whenever a new response is recorded. That might be out of scope from your original question, but it's something to consider as a next step.