Word 6.0 OLE Error 437 
Author Message
 Word 6.0 OLE Error 437

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



Sat, 15 Aug 1998 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. OLE Automation Error Experienced with Word 7.0 not with Word 6.0

2. OLE Automation Error Experienced with Word 7.0 not with Word 6.0

3. OLE Automation Error experienced with Word 7.0 not with Word 6.0

4. VB 4.0 / Word 6.0 OLE automation problem?

5. VB 3.0 OLE control of Word 6.0

6. Help needed:OLE under VB4 and Win3.11 accessing Word 6.0

7. Problem with OLE and Word 6.0

8. Problems using OLE and Word 6.0

9. VB and Word 6.0 OLE vs GPF

10. Word 6.0 and OLE question

11. Error referencing VB 6.0 ActiveX DLL from Word 97

12. OLE Automation error when creating WORD.APPLICATION

 

 
Powered by phpBB® Forum Software