Skip to main content

Kutools for Office — 一套工具,五種功能。完成更多工作。

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

Author Xiaoyang Last modified

如果您在 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 的郵件合併數據和圖片

 

最佳 Office 生產力工具

🤖 Kutools AI 助手:以智能執行為基礎,革新數據分析 生成程式碼 創建自訂公式 分析數據並生成圖表 調用 Kutools 增強函數
熱門功能查找、選取項目的背景色或標記重複值刪除空行合併列或單元格且不遺失數據四捨五入(免公式)...
高級 LOOKUP多條件 VLookup多值 VLookup多表查找模糊查找...
高級下拉列表快速創建下拉列表 依賴型下拉列表 多選下拉列表...
列管理器添加指定數量的列移動列切換隱藏列的顯示狀態比較區域及列...
精選功能網格聚焦 設計檢視 增強編輯欄 工作簿及工作表管理器 資源庫(快捷文本) 日期提取器 合併資料 加密/解密儲存格 按列表發送電子郵件 超級篩選 特殊篩選(篩選粗體/傾斜/刪除線...)...
15 大工具集12 項文本工具添加文本刪除特定字符…)50+ 儀表 類型甘特圖等)40+ 實用 公式基於生日計算年齡等)19 項插入工具插入QR码根據路徑插入圖片等)12 項轉換工具金額轉大寫匯率轉換等)7 項合併與分割工具高級合併行分割儲存格等)...及更多
使用 Kutools,語言任你選 — 支援英語、西班牙語、德語、法語、中文及超過40 種語言!

運用 Kutools for Excel,全面提升您的 Excel 技能,體驗前所未有的高效。 Kutools for Excel 提供超過300 項進階功能,讓您提升工作效率、節省時間。 點此尋找您最需要的功能...


Office Tab 為 Office 帶來分頁介面,讓您的工作更加輕鬆簡單

  • 在 Word、Excel、PowerPoint 中啟用分頁編輯與閱讀
  • 在同一視窗的新分頁中打開與創建多份文件,而非開啟新視窗。
  • 提升您的生產力50%,每日可幫您減少數百次鼠標點擊!

所有 Kutools 外掛,一次安裝

Kutools for Office 套裝整合了 Excel、Word、Outlook 和 PowerPoint 的外掛,外加 Office Tab Pro,非常適合需要跨 Office 應用程式協同作業的團隊。

Excel Word Outlook Tabs PowerPoint
  • 全合一套裝 — Excel、Word、Outlook及 PowerPoint 外掛 + Office Tab Pro
  • 一鍵安裝,一份授權 — 幾分鐘完成設置(支援 MSI)
  • 協同運作更順暢 — Office 應用間無縫提升生產力
  • 30 天全功能試用 — 無需註冊、無需信用卡
  • 最超值 — 一次購買,節省單獨外掛費用