Hi everyone,
So, I have been programming in VBA for around 5 years (as well as other languages like Java, c#, Python, etc), and this has me completely stumped. Part of an Ms Access solution automates populating around 5000 customer letters in Ms Word documents each quarter. Now, all of the sudden when it attempts to save a new document Word is prompting for the save location, even though it's provided in the SaveAs call. As far as I can tell this is only occurring on one workstation, on which I've done an office repair, and wiped the user profile. Office is being reinstalled as I write this.
Has anyone ever ran into this before? Unfortunately, this is a remote machine at a customer site, and the only machine I have access to test on their network, and replacing or swapping it out is not an easy request.
To isolate the issue I recreated the same concept within word with a simple method that opens a new word document and attempts to save it to a local directory, taking access and network issues out of the equation, and I receive the same result. Simple test code:
Sub test()
Dim doc As Document
Set doc = Documents.Add ''Create a document
doc.SaveAs FileName:="C:\Test\Test.docx" ''Save the document
End Sub
Any thoughts?
So, I have been programming in VBA for around 5 years (as well as other languages like Java, c#, Python, etc), and this has me completely stumped. Part of an Ms Access solution automates populating around 5000 customer letters in Ms Word documents each quarter. Now, all of the sudden when it attempts to save a new document Word is prompting for the save location, even though it's provided in the SaveAs call. As far as I can tell this is only occurring on one workstation, on which I've done an office repair, and wiped the user profile. Office is being reinstalled as I write this.
Has anyone ever ran into this before? Unfortunately, this is a remote machine at a customer site, and the only machine I have access to test on their network, and replacing or swapping it out is not an easy request.
To isolate the issue I recreated the same concept within word with a simple method that opens a new word document and attempts to save it to a local directory, taking access and network issues out of the equation, and I receive the same result. Simple test code:
Sub test()
Dim doc As Document
Set doc = Documents.Add ''Create a document
doc.SaveAs FileName:="C:\Test\Test.docx" ''Save the document
End Sub
Any thoughts?