Hi All,
I have a big problem with which I need some help desperately.
I am trying to commnunicate with Word 6.0 via this method.
Eg.
Dim WordObj as Object
Set WordObj = CreateObject("Word.Basic")
WordObj.FileNew.Template "mytemp.dot"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This line gives me the error
The trouble is when I get to opening a new file based on the template
'mytemp.dot' I get the error message
Error 437: OLE not returning a value
I get the same error when I try the line
WordObj.FilePageSetup.LeftMargin "1.5 cm"
It works fine when inserting text
Eg WordObj.Insert "Hello"
This also works fine
WordObj.FileNew
Any help or suggestions very much appreciated,
Erik