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!

  • mikyopii@programming.dev
    link
    fedilink
    arrow-up
    4
    arrow-down
    2
    ·
    9 months ago

    Does it have to be a Word template? If you can get that into a plain text format this will be much easier. There may be a module that you can download online otherwise you are probably going to have to do some painful parsing after you import the file using “Get-Content”.

    Do you have any code written? This sounds like something that ChatGPT could probably handle pretty well.

    • BobTheDestroyerOP
      link
      fedilink
      arrow-up
      2
      ·
      9 months ago

      It does have to be a Word template. It has a bar graph and various texts.

      • mikyopii@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        9 months ago

        Yeah, I looked at the plain text of a .dotx file. That’s unparsable. The other poster probably has the right idea on how to get information out of the file.