Replace Word text using Interop 2

Hi I’m trying to use this code on this thread Replace Word text using Interop for a school project.

Do i have to install the Microsoft.Office.Interop.Word library, for the code to work?

yes, you have to have licensed microsoft word installed in your computer in order to use the interop. With that being said, are you gonna code in dynamo straight or are you developing your own custom zerotouch library instead?

1 Like

Thank you, i was trying to put the code in a python script, but i forgot to put the inputs as lists. It worked perfectly.

I’ve used the python script in this thread, however it replaces all the characters in the search string with only multiple copies of the first character of the replacement string
Can anyone advise on how to fix this ?

Can you show me your graph?