跳到主要內容

快速批量查找並替換多個Word或txt / html文件中的多個字符串

在Word中,通過內置的“查找和替換”功能,可以很容易地在當前編輯文檔中一次查找和替換一個字符串。 但是,有時,您可能想一次搜索並替換多個Word文檔或txt / html文件中的多個字符串。 在這裡 批量查找和替換 的工具 Kutools for Word 會幫你一個忙。

批量查找並替換多個Word文檔中的多個字符串

批量查找並用多個Word文檔中的特定格式替換多個字符串

批量查找並替換多個Word文檔中的特殊字符

批量查找並替換多個txt / htm / html文件中的多個字符串


批量查找並替換多個Word文檔中的多個字符串

隨著 批量查找和替換 工具,您可以快速搜索多個字符串,並用多個Word文檔中的新字符串替換它們,包括關閉的字符串。 請按照以下步驟操作:

1。 點擊 Kutools 加 > 批量查找和替換,請參見屏幕截圖:

2.在彈出 批量查找和替換 對話框的右側部分中,選擇 * .DOC * 來自 文件類型 下拉列表,然後單擊 按鈕添加您要查找的文檔並替換字符串。

3.仍在 批量查找和替換 對話框中,這一步,您應該創建搜索條件,請單擊 添加行 從下方的頂部色帶 查找和替換 標籤:

  • 在插入的行字段中,將找到的文本輸入到 發現 柱;
  • 然後,將您要替換為的文本輸入到 更換 柱;
  • 然後,從下拉列表中指定搜索類型,如果您不需要任何搜索類型, 與機身相同顏色 將顯示在該字段中;
  • 然後,從下方選擇要查找文本的範圍 查找 默認情況下, 主要文件 已選中,您可以在頁眉,頁腳,腳註等中查找和替換;
  • 最後,您可以根據需要指定顏色以突出顯示文本。

備註:如果要刪除搜索條件,只需選擇條件行,然後單擊 刪除行 從頂部的功能區。

4.創建搜索條件後,單擊 發現 or 更換 根據需要,然後轉到 預覽結果 標籤以查看查找和替換結果。

5。 點擊 關閉 按鈕在 批量查找和替換 對話框,將彈出一個提示框,提醒您是否要保存此方案,請單擊 保存它,然後單擊 沒有 要忽略它,請參見屏幕截圖:

6.如果單擊 ,將顯示另一個提示框,請為此情況輸入名稱,請參見屏幕截圖:

7.然後,單擊 Ok 關閉對話框,場景也將被保存。


批量查找並用多個Word文檔中的特定格式替換多個字符串

有時,您可能想要查找具有特定格式(例如粗體文本)的文本字符串,然後立即將其替換為另一種文本並設置格式。 的 批量查找和替換 功能也可以幫您一個忙。

1。 點擊 Kutools 加 > 批量查找和替換 批量查找和替換 對話框。

2.在彈出 批量查找和替換 對話框,請執行以下操作:

  • 在右側部分中,選擇 * .DOC * 來自 文件類型 下拉列表,然後單擊 按鈕添加您要查找的文件並替換字符串;
  • 在左側列錶框中,單擊 添加行 要插入條件字段,請分別在字段中輸入查找和替換文本字符串,然後根據需要指定搜索類型和搜索範圍,最後,選擇舊文本的查找格式和想要的新替換格式查找和替換。

3.創建條件後,然後單擊 更換 or 發現 您需要找到所有具有特定格式的文本字符串,或將其替換為具有指定格式的新字符串。


批量查找並替換多個Word文檔中的特殊字符

如果要在多個單詞文件中查找某些特定字符並將其替換為其他新字符,請執行以下操作:

1。 點擊 Kutools 加 > 批量查找和替換批量查找和替換 對話框。

2.在彈出 批量查找和替換 對話框,請執行以下操作:

  • 在右側部分中,選擇 * .DOC * 來自 文件類型 下拉列表,然後單擊 按鈕添加您要查找的文件並替換字符串;
  • 在左側列錶框中,單擊 添加行 插入條件字段,然後在文本框中單擊 發現 列,然後單擊 特別 按鈕,在展開的列表中,選擇要查找的字符;

3.然後,在 更換 列中,輸入或選擇要替換原始字符的特定字符,請參見屏幕截圖:

4.最後,單擊 更換 要查找和替換字符,您可以通過轉到 預覽結果 標籤,請參見屏幕截圖:


批量查找並替換多個txt / htm / html文件中的多個字符串

如果要查找並替換txt,htm和html文件中的多個字符串,請執行以下步驟:

1。 點擊 Kutools 加 > 批量查找和替換.

2。 在裡面 批量查找和替換 窗口,請執行以下操作:

  • 在右側部分中,選擇 * .txt; *。htm; *。html 來自 文件類型 下拉列表,然後單擊 按鈕添加您要查找的文檔並替換字符串;
  • 在左側列錶框中,單擊 添加行 插入條件字段,然後分別在字段中輸入查找和替換文本字符串。

3。 點擊 更換 or 發現 按鈕以獲取您的需求。


提示:

1.創建搜索條件後,您可以保存場景並在下次再次使用。 請點擊 節省 對話框頂部功能區中的“按鈕”,在彈出的對話框中,鍵入方案的名稱,然後單擊“確定”。 Ok 保存它。

2.要重複使用保存的方案,可以單擊 已提交 按鈕可以快速輕鬆地選擇並打開一個方案。

3. :點擊此 關閉 按鈕立即關閉當前場景。

4.如果要管理已保存的方案,請單擊 管理 按鈕去 方案管理 對話框中 方案管理 窗口中,您可以根據需要重命名,刪除,移動,導出和導入方案,請參見屏幕截圖:

5.如果要導出搜索或將結果替換為報告,請檢查 導出報告 複選框,然後單擊 發現 or 更換 按鈕。 當您關閉 批量查找和替換 對話框,會彈出一個提示框,提醒您報告的保存路徑,您可以根據需要打開報告文件。 查看屏幕截圖:


最佳辦公生產力工具

Kutools for Word - 透過 Over 提升您的文字體驗 100 顯著特點!

🤖 Kutools 人工智慧助手:用人工智慧改變你的寫作 - 生成內容  /  波蘭文 為了清晰起見 /  總結文件  /  查詢資料 基於文檔,全部在Word中

📘 文件掌握: 分頁  /  合併文件  /  以各種格式匯出選擇(PDF/TXT/DOC/HTML...)  /  批次轉換為PDF  /  將頁面匯出為圖像  /  一次列印多個文件...

內容編輯: 批量查找和替換 跨多個文件  /  調整所有圖片的大小  /  轉置表行和列  /  將表格轉換為文字...

🧹 輕鬆清潔: 移開 多餘的空間  /  分節符  /  所有標題  /  文本框  /  超鏈接  / 如需更多拆卸工具,請前往我們的 刪除組...

創意插入: 插入 千位分隔符  /  複選框  /  單選按鈕  /  QR Code  /  條碼  /  對角線表  /  公式標題  /  圖片說明  /  表格標題  /  多張圖片  / 發現更多 插入組...

🔍 精準選擇:精確定位 特定頁面  /    /  形狀  /  標題段落  / 增強導航功能 更多 選擇功能...

星級增強: 快速導航至任何位置  /  自動插入重複文字  /  在文檔視窗之間無縫切換  /  11 轉換工具...

???? 想嘗試這些功能嗎? Kutools for Word 提供了 60天免費試用,沒有任何限制! 🚀
 
Comments (13)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
when i use Kutools plus for Word, I get the following error message when trying to save my batch find and replace file:

"missing or invalid value (lookup column)"

Can you please tell me how I can resolve this, as it is a long list and I need to use it again.

Also, is there a way to import such a long list, as typing each line individually takes ages.

Thanks
This comment was minimized by the moderator on the site
We apologize for the inconvenience you encountered while using our feature. Typically, this issue may arise if the document you are looking for does not exist or if the search criteria do not match. Please provide us with a screenshot of your operation interface so that we can further understand the issue and provide the appropriate solution.
This comment was minimized by the moderator on the site
Batch Find and Replace: I want to remove yellow highlighting from ALL the text in multiple word files. Is there a way to do that via your Batch Find and Replace routine? Otherwise a great product!
Thanks
This comment was minimized by the moderator on the site
Hello, currently, we do not have the capability to search and replace by color. I will provide your feedback to our technical team, and this feature may be added in future versions. Thank you.
This comment was minimized by the moderator on the site
是否可以加入excel匯入批量尋找
不然逐項列,也是挺花時間的
This comment was minimized by the moderator on the site
你好,感谢你的建议,我已将此建议反馈到技术部,待讨论后后续版本可能会有所升级。
This comment was minimized by the moderator on the site
Hola.
Gracias por la aportación,, muy útil. pero quisiera saber donde se guardan los nuevos archivos porque no los encuentro.
Un saludo y gracias.
This comment was minimized by the moderator on the site
Hi, the Batch Find and Replace function will find and replace the values in the original files, just go to the original path to view the replacing result. If you want to konw the path of the exported resport, please go to C:\Users\AddinTestrWin10\Documents\Kutools for Word\FindAndReplaceReport.
This comment was minimized by the moderator on the site
Thank you, I didn't realise the replacement wasn't suitable because there were 2 spaces between 2 words instead of 1 space, as soon I realised the mistake, the replacement was perfect.
Thank you very much. It's very useful.
This comment was minimized by the moderator on the site
is there no option to load the columns (find and replace) from excel so as to not type manually words in the file.
This comment was minimized by the moderator on the site
If a user enters tens of thousands of words in a scenario and finds a wrong word while using it, how do the user find and correct the wrong word? There should be a function to search for the wrong word in the scenario.
This comment was minimized by the moderator on the site
I think your product is good. If users have many words to save or have different replacement options, users can create multiple scenarios. it would be nice if the user could create each task with multiple scenarios, edit the execution order of the scenarios, and allow the user to run multiple scenarios for each task at once. Depending on the order in which words are replaced, the replaced result may be different. Also, it would be nice to have a sort function for the words to find.
This comment was minimized by the moderator on the site
sería asombroso que además permitiera reemplazar el formato del texto
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations