[英]I would like to split multiple URLs from a single Google Sheets cell and then add them as images into a Google Doc
I have a Google Sheet doc that has column called Imgs which contains a cell with multiple URLs that links to multiple images:我有一个 Google Sheet 文档,其中包含一个名为 Imgs 的列,其中包含一个具有多个 URL 的单元格,这些 URL 链接到多个图像:
So, I would like to do the following with an Apps Script:因此,我想使用 Apps 脚本执行以下操作:
Split the URLs by eliminating the comma delimitator通过消除逗号分隔符来拆分 URL
Find a way to create an array with each URL想办法用每个 URL 创建一个数组
Pick URL by URL from the array and then attach each one to the Google Doc as images, leaving something like this从数组中选择 URL by URL,然后将每个图像作为图像附加到 Google Doc,留下类似这样的内容
Here's the link to the Google Sheet as an example: link以下是指向 Google 表格的链接作为示例: link
Any help would be appreciated!任何帮助,将不胜感激!
Without your specific sheet I made a similar one没有你的具体表我做了一个类似的
E9 has a long string of URLs E9 有一长串网址
'https://www.agustafamily.net/Hayden.png,https://www.agustafamily.net/wedding.jpg 'https://www.agustafamily.net/Hayden.png,https://www.agustafamily.net/wedding.jpg
Using the SPLIT function returns individual URLS使用 SPLIT function 返回单个 URL
=SPLIT(E9,",")
The using the IMAGE() function to get the images使用 IMAGE() function 获取图像
=image(E10)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.