I have created a code that automates the creation of a Word Document when I send to it two arrays with data.
The code is the following:
Everything works OK except for the part where this code is executed:
If I write it for instance, beneath the part:
The Header 1 Style appears correctly.
"str" is always a string.
I have tried including:
and it doesn't solve the problem either.
Apart from that, every second time I execute the code from excel, I have a server errors, as if the object was still existing, but actually, I close it in the end with this code, so I don't guess where the problem is:
I would much appreciate your assistance.