#23444
Sung-ik Ko
Participant

Thank you for your help.

Here’s what you wrote in your macro Uni_CJK_3.jsee .
——————
var folderPath = “C:\\Users\\makot\\Downloads\\”; // Use double backslash to use backslash character in string

// List of documents to process
var docs = [
[“test1.txt”],
[“test2.txt”]
];
———————-
Does it mean I have to change the folder path and the list of documents every time I work with different text file sets? If so, I’m afraid it is not very practical. Most of the time normal users open files and use ‘find & replace’ with ‘Search All Documents in the Group’ checked. Sometimes users open files from different folders. Sometimes hundreds or thousands of files from different folders. I wonder if it is too complicated a work to write a general purpose macro for that situation. if it is not a simple job, I’d better stop here.