I’m a beginner to Powershell and CLI in general, but this task does not need to use either so I’m open to using other tools.

I’m trying to do the following:

  1. Create multiple files from a Word template.
  2. Rename each file based on a list of names found in an Excel/CSV sheet.

Thanks in advance!

  • Vince@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    7 months ago

    Sounds like you’re just copying a template to new files based on a csv? You don’t have to edit anything inside the word files at all?

    If that’s the case, just load the csv file, I think the command is Read-Content, loop through each line, split by ‘,’ parse whatever name data you need and copy your template.docx to your new file.docx