Skip to main content

如何在 Word 郵件合併中使用 Excel 數據和圖片

Author: Xiaoyang Last Modified: 2025-05-12

如果您在 Excel 工作表中有一份包含學生姓名、年齡、課程、學院和照片路徑的資訊清單,現在您想根據以下截圖為每位學生在 Word 中製作一張考試准考證。要快速輕鬆地製作這種卡片,Word 中的郵件合併功能可以幫助您完成。

A screenshot of a sample exam admission card created using mail merge in Word

在 Word 郵件合併中使用 Excel 數據和圖片


在 Word 郵件合併中使用 Excel 數據和圖片

應用郵件合併功能來創建帶有圖片的卡片,請按照以下步驟逐一操作:

步驟 1:在 Excel 中準備數據清單

1. 在工作表中輸入您需要的資訊,並按以下截圖所示輸入圖片文件路徑:

A screenshot of an Excel sheet with student information, including paths to their photos

2. 然後,您需要通過在地址中的每個斜杠後添加另一個斜杠來修改圖片地址,見截圖:

A screenshot showing how to adjust file paths by adding double slashes in Excel
提示:如果有多個單斜杠需要轉換為雙斜杠,您可以應用 Excel 中的「尋找和替換」功能一次性查找並替換它們。

3. 輸入數據後,保存並關閉 Excel 文件。

步驟 2:準備 Word 文件

4. 您可以根據自己的需求,在 Word 文件中準備和設計卡片格式,如下截圖所示:

A screenshot of a Word document with a formatted template for student cards

步驟 3:建立 Excel 文件與 Word 文件之間的關聯

5. 完成 Word 文件中的信息格式後,請點擊「郵件」>「選擇收件人」>「使用現有列表」,見截圖:

A screenshot showing the Mailings tab with the Select Recipients option in Word

6. 然後,在彈出的「選擇數據源」窗口中,選擇您創建的 Excel 文件,然後點擊「打開」按鈕,見截圖:

A screenshot of the Select Data Source dialog box in Word to choose the Excel file

7. 在隨後的「選擇表格」對話框中,選擇包含您要使用的學生信息的工作表,然後點擊「確定」,見截圖:

A screenshot of the Select Table dialog box in Word to choose the worksheet for the mail merge

8. 接著,將光標放在「姓名」旁邊,然後點擊「郵件」>「插入合併域」>「姓名」,「姓名」字段將被插入到 Word 文件中,如下截圖所示:

A screenshot showing the insertion of the Name merge field in the Word document

9. 然後,您應該重複上述步驟,為年齡、課程和學院插入其他相應的字段以獲得以下結果:

A screenshot of a Word document with fields for Name, Age, Course, and College added for mail merge

10. 插入數據字段後,接下來,您應該插入圖片字段。現在,請將光標放在您想要顯示圖片的位置,然後點擊「插入」>「快速部件」>「字段」,見截圖:

A screenshot of the Insert Quick Parts Field option for adding images in Word

11. 在彈出的「字段」對話框中,從左側的「字段」名稱面板中選擇「IncludePicture」,然後在「字段」屬性文本框中輸入任何內容,例如 Image,然後點擊「確定」按鈕保存設置。見截圖:

A screenshot showing the Field dialog box with IncludePicture selected in Word

12. 現在,圖片已插入到文檔中,但您無法看到它。

A screenshot showing an empty placeholder for an image after using IncludePicture in Word

13. 然後,點擊圖片並按下「Alt」+「F9」切換到字段代碼,如下截圖所示:

A screenshot of the image field code after toggling field codes in Word
a screenshot of kutools for excel ai

使用 Kutools AI 解鎖 Excel 的魔法

  • 智能執行:執行單元格操作、分析數據並創建圖表——所有這些都由簡單的指令驅動。
  • 自訂公式:生成量身定制的公式,簡化您的工作流程。
  • VBA 編碼:輕鬆編寫和實現 VBA 代碼。
  • 公式解釋:輕鬆理解複雜的公式。
  • 文本翻譯:打破電子表格中的語言障礙。
通過人工智能工具增強您的 Excel 能力。立即下載,體驗前所未有的效率!

14. 選擇高亮顯示的圖片代碼中的 Image 單詞,然後點擊「郵件」>「插入合併域」>「照片」,見截圖:

A screenshot showing the Photo field added in Word for the mail merge

15. 點擊「照片」字段後,代碼將轉換如下截圖所示:

A screenshot of the updated field code after adding the Photo field in Word

16. 現在,再次按下「Alt」+「F9」,但圖片仍然不可見。

A screenshot showing the placeholder for the photo before finalizing the mail merge in Word

17. 繼續點擊「郵件」選項卡,然後點擊「完成與合併」>「編輯單個文檔」,見截圖:

A screenshot showing the Finish & Merge option in the Mailings tab in Word

18. 在彈出的「合併到新文檔」對話框中,從「合併記錄」中選擇「全部」,然後點擊「確定」按鈕。

A screenshot of the Merge to New Document dialog box in Word for completing the mail merge

19. 一個包含所有數據信息的新文檔打開了,但圖片可能仍然不可見,見截圖:

A screenshot of a new document after the mail merge but with images not yet visible

20. 要使圖片可見,按下「Ctrl」+「A」選擇 Word 文件中的所有內容,然後按下「F9」鍵,在彈出的「Microsoft Word 安全通知」對話框中,點擊「是」按鈕,見截圖:

A screenshot of the Microsoft Word Security Notice dialog box during mail merge

21. 點擊「是」後,您可以看到 Word 文件中填滿了來自 Excel 工作表的合併圖片和數據信息,如下截圖所示:

A screenshot of a Word document filled with data and pictures after completing the mail merge

然後,您可以根據需要打印並保存該文件。


演示:從 Excel 到 Word 的郵件合併數據和圖片

 

最佳辦公效率工具

🤖 Kutools AI 助手:基於智能執行方式革新數據分析:智能執行   |  生成代碼  |  創建自訂公式  |  分析數據並生成圖表  |  調用 Kutools 函數
熱門功能查找、標記重複值或識別重複項   |  刪除空行   |  合併列或單元格而不丟失數據   |   四捨五入無需公式 ...
高級 LOOKUP多條件 VLookup    多值 VLookup  |   多表查找   |   模糊查找 ....
高級下拉列表快速創建下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
列管理器添加特定數量的列  |  移動列  |  切換隱藏列的可見狀態  |  比較區域和列 ...
特色功能網格聚焦   |  設計檢視   |   增強編輯欄    工作簿與工作表管理器   |  資源庫(自動文本)   |  日期提取器   |  合併資料   |  加密/解密儲存格    按列表發送電子郵件   |  超級篩選   |   特殊篩選(篩選粗體/斜體/刪除線...) ...
頂級 15 種工具集12 個文本工具添加文本刪除特定字符、...)   |   50+ 圖表 類型甘特圖、...)   |   40+ 實用 公式基於生日計算年齡、...)   |   19 個插入工具插入QR碼根據路徑插入圖片、...)   |   12 個轉換工具金額轉大寫匯率轉換、...)   |   7 個合併與分割工具高級合併行分割儲存格、...)   |   ... 還有更多

使用 Kutools for Excel 提升您的 Excel 技巧,體驗前所未有的高效。 Kutools for Excel 提供超過 300 種高級功能來提高生產力並節省時間。  點擊這裡獲取您最需要的功能...


Office Tab 將標籤式界面帶到 Office,讓您的工作更加輕鬆

  • 在 Word、Excel、PowerPoint、Publisher、Access、Visio 和 Project 中啟用標籤式編輯和閱讀。
  • 在同一窗口的新標籤中打開和創建多個文檔,而不是在新窗口中。
  • 將您的生產力提高 50%,每天為您減少數百次鼠標點擊!