dhancy
Board Regular
- Joined
- Jul 10, 2013
- Messages
- 123
- Office Version
- 365
- Platform
- Windows
Hello,
I have an Excel VBA script that creates multiple Word documents. I've been using it for a few years and it's been working great. I have roughly 350 files. The script used to create the Word documents and save them as PDFs in about 45 minutes.
In the last few months, it's slowed down considerably. Now it takes more than two hours.
I'm at a loss as to what changed. The only thing I can think of is that our organization upgraded to Office 2016 from Office 2013 over the summer. Could that be causing the problem?
Here is the code I am using to set this up:
Is there anything in there that needs to change for 2016? Or can you think of something else that might be causing the slow down? I appreciate any insight on this.
Thanks!
Dennis
I have an Excel VBA script that creates multiple Word documents. I've been using it for a few years and it's been working great. I have roughly 350 files. The script used to create the Word documents and save them as PDFs in about 45 minutes.
In the last few months, it's slowed down considerably. Now it takes more than two hours.
I'm at a loss as to what changed. The only thing I can think of is that our organization upgraded to Office 2016 from Office 2013 over the summer. Could that be causing the problem?
Here is the code I am using to set this up:
Code:
Dim wrdApp As Word.Application
Dim wrdDoc As Word.Document
Set wrdApp = CreateObject("Word.Application")
wrdApp.Visible = False
Set wrdDoc = wrdApp.Documents.Add(Template:=folderTemp & "\DD4.dotx")
Is there anything in there that needs to change for 2016? Or can you think of something else that might be causing the slow down? I appreciate any insight on this.
Thanks!
Dennis