跳到主要內容
普通 ChatGPT 用戶? 嘗試整合 ChatGPT ExtendOffice.

在Excel中輕鬆地從URL或文件路徑插入或顯示圖像

新增一名作者 最後修改時間:2023-02-27

Excel的Kutools

提升 Excel 300+
強大的功能

通常,要根據相關的 URL 或文件路徑插入圖像,只有 VBA 代碼可以幫助您處理它。 在這裡,與 從路徑插入圖片(URL) 的效用 Excel的Kutools,只需單擊幾下,您就可以在 Excel 中快速插入來自給定 URL 或文件路徑的圖像。

從Excel中的URL插入/顯示圖像

從Excel中的文件路徑插入/顯示圖像


單擊Kutools>插入>從路徑(URL)插入圖片…以啟用該功能


從Excel中的URL插入/顯示圖像

要從URL插入圖像,請執行以下操作。

1.單擊以啟用該功能 庫工具 > 插入 > 從路徑插入圖片(URL).

2。 在裡面 從路徑插入圖片(URL) 對話框,請:

  • 1)選擇要根據其中插入圖片的URL的單元格範圍 路徑(URL)範圍 部分;
  • 2)選擇一個空白單元格,您將在其中輸出圖像 插入範圍(一個單元格) 部分;
  • 3)在中指定您需要的圖片尺寸 圖片尺寸(像素) 部分;
  • 4)點擊 OK 按鈕。 看截圖:

然後,根據給定的URL顯示所有圖片,如下圖所示。


從Excel中的文件路徑插入/顯示圖像

如果要顯示文件路徑中的圖像,請嘗試以下操作。

1.單擊以啟用該功能 庫工具 > 插入 > 從路徑插入圖片(URL).

2。 在裡面 從路徑插入圖片(URL) 對話框,請完成以下設置:

  • 1)在 路徑(URL)範圍 部分中,選擇包含將基於其顯示圖片的文件路徑的單元格;
  • 2)在 插入範圍(一個單元格) 部分,選擇一個單元格,您將輸出圖像;
  • 3)在中指定您需要的圖片尺寸 圖片尺寸(像素) 部分;
  • 4)點擊 OK 按鈕。 看截圖:

現在,根據給定的路徑將圖片插入特定的單元格中。 看截圖:

備註:

1.如果您檢查 添加原始圖像作為評論 此對話框中的框,圖像將同時以原始尺寸插入評論中。

2.根據Excel規範和限制(https://support.office.com/en-us/article/excel-specifications-and-limits-1672b34d-7043-467e-8e27-269d656771c3),插入圖片的寬度必須小於2045像素,固定高度必須小於547像素。

3.如果超出指定的大小限制,插入的圖片將被自動調整。


演示:使用Kutools for Excel從路徑或URL插入圖片

Kutools for Excel:您必須在Excel中擁有300多種功能, 從這裡免費試用30天


生產力工具推薦
以下工具可以極大地節省您的時間和金錢,哪一種適合您?
Office Tab: 在辦公室中使用方便的選項卡,作為Chrome,Firefox和New Internet Explorer的方式。
Excel的Kutools: 超過300種Excel高級功能 2021、2019、2016、2013、2010、2007 和 Office 365。

Excel的Kutools

上述功能只是Kutools for Excel的300個強大功能之一。

專為 Excel(Office) 2021、2019、2016、2013、2010、2007 和 Office 365 設計。免費下載和使用 30 天。

Kutools for Excel的屏幕截圖

btn了解更多      btn下載     btn購買

Comments (18)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Dear team, I have followed these steps correctly, but the resulting output says "picture(s) failed to be inserted". Give me a solution to solve this problem... Thanks you
This comment was minimized by the moderator on the site
Hello,
I apologize for the inconvenience. Could you please provide your image link? You may send the relevant information here or email it to .
This comment was minimized by the moderator on the site
I have followed these steps correctly, but the resulting output says "picture(s) failed to be inserted". Give me a solution to solve this problem pleasee... Thanks you
This comment was minimized by the moderator on the site
when i use the split data it doesnt grab the images accordingly and im splitting my workbook into aprox 50 sheets is there a better way to do this without going through each workbook
This comment was minimized by the moderator on the site
Hi rafa,
The Split Data function does not yet support processing images. Sorry for the inconvenience.
This comment was minimized by the moderator on the site
Dear team,
When I added the images matching column through kutools which I just purchased to solve my problem after spending 52USD, still my problem persists, as the image quality becomes worse on its own after adding thrugh kutools in excel. Please help.
This comment was minimized by the moderator on the site
Hi akshay,

To solve this problem, please select File > Options to open the Excel Options window. Then select Advanced in the left pane, check the Do not compress images in file checkbox and then click OK to save the changes.
https://www.extendoffice.com/images/stories/comments/comment-picture-zxm/insert-file-by-path.png?1698389451
This comment was minimized by the moderator on the site
Dear team,
When I added the images matching column through kutools which I just purchased to solve my problem after spending 52USD, still my problem persists, as the image quality becomes worse on its own after adding thrugh kutools in excel. Please help.
This comment was minimized by the moderator on the site
Hi,

Does this feature not work if the URL link is a formula?

I connected to Anaplan module which displays the account logo link based on the user selection of specific account name. This way the in the other tab the table information (coming from separate Anaplan module) is updated based on the user selection of account name and the link would also update based on same to populate the grid and the logo image.
This comment was minimized by the moderator on the site
Hi Claudia,

This feature does not work in formula cells. Sorry for the inconvenience.
This comment was minimized by the moderator on the site
I have a spreadsheet I use for a list of names.
The cells have the names.
Some of the cells would have the same picture.
(Think of a family list for ancestry)
To have the same picture show more than once would make the file very large.

Is it possible to have two worksheets in the same workbook.
One sheet is for only pictures.
The other sheet shows the names, the names of parents.

Can I put a code (similar to html) that can show the same picture more than once.
Not embed, that would make the file size too large.
But only to show the picture with a click.
Another click hides the picture.

When the workbook is closed, only the original pictures on their own sheet are retained.

Showing this same procedure inside a comment would be fantastic too.
(This way, embed picture once, show many.
This comment was minimized by the moderator on the site
Hi Jane Anderson,
This feature has been upgraded to include the "add original image as comment" option, please watch out for our new release.
You can select a cell in another worksheet as the picture storage area to separate the picture worksheet from the original data worksheet.
But this feature will not help you to achieve inserting pictures based on names only, you need to provide the picture storage path. Or you can use the "Match Import Picture" fearure to handle this problem.
This comment was minimized by the moderator on the site
Not able to extract the images from url path
Picture fail to insert error
This comment was minimized by the moderator on the site
Hi Vivek Desai,
We have improved this feature, please download this version and give it a try. Sorry for the inconvenience.
Click to download Kutools for Excel 27.00
This comment was minimized by the moderator on the site
Hello,

Insert/Display Images From File Paths In Excel is not working, would you please help me.
This comment was minimized by the moderator on the site
Hi Ayman,
Can you provide the specific data, such as the file path, the URL of the picture, etc.
It would be nice if you can uploade a screenshot of the data.
This comment was minimized by the moderator on the site
No funciona en Windows 11 ni en Windows 10 esta funcion... aun no he probado en Win7... y he probado la version 21 y 24 de kutools.. que horrible que lo publiciten tanto.... Cuando lo mando a trabajar, se poco antes de llegar al 100% se pega, independiente de usar otro ser de url o no....
This comment was minimized by the moderator on the site
Hi dj.Clearme,
This feature was successfully tested on Win10 and Win11. Did you get any error prompt? I need to know more specific about your issue.
You can download the latest version 26.00: https://www.extendoffice.com/download/kutools-for-excel.html or contact us via to send us feedback on specific questions.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations