I'm getting the error below when executing the below code on Windows 7 64bit Office 2010 machines at my company.
Line 6 Char 1
Error: Object Required: 'documents.add'
Source: MS VBScript runtime error
The code was given to me for testing purposes by a 3rd party application support company. It should just open a blank document in Word.
I've tried this on many different machines running a variety of Windows 7 64bit Office 2010 machines and get a seemly random mix of errors and successes. I have tried fully enabling macros and lowering security.
On one machine the script will return the error if Word is already open but will work successfully if not.
Does anyone know of any prevailing conditions or settings which will determine whether this will work?