Word Application scope closes all the word files open while exiting

Hi All,
I am working on an automation project to create pdf letters from word templates by adding data wherever needed. For converting the word file to pdf I have to use “ExportToPDF” activity which can be used inside word application scope. But when the code exits word application scope , it closes all the word files open on the system even though they are not related to the execution.
Does anyone know what can be done to avoid this?
Thanks in advance.

1 Like

I’ve come across this, I had to adapt using one Word file at a time.

If you have a list of Word documents, place your Word Scope inside a Loop and start generating your PDFs.

It worked for me. So it will always open a Word Scope for each file that has to be exported.