Script to create Word documents filled with data from Excel file lines
The script fills the form of a document made in Word with the data contained in an Excel table Create a Word document. Place in the fields that need to be filled in characters like {0}, {1}, etc. where 0 is the cell of the first column of the Excel file from which the filling is made, 1 is the second, etc. Create or download an excel table with the data to fill out. Edit the script, specify the file names and paths to their locations. Run the script. If everything is done correctly, Word files will be generated from the Word template based on the number of rows in the Excel data table
Скрипт заполняет форму документа, сделанного в Word, данными, которые содержатся в таблице Excel Создайте документ Word. Расставьте в поля,которые необходимо заполнить символы вида {0}, {1} и т.д. где 0 - ячейка первого столбца сроки файла Excel, из которого производится заполнение, 1 - вторая и т.д. Создайте или выгрузите таблицу excel с данными для заполнения. Отредактируйте скрипт, укажите названия файлов и пути их расположения. Запустите скрипт. Если всё сделано правильно, будут сгенерированы файлы Word из шаблона Word по количеству строк в таблице с данными Excel