General information
Category:
Coding, syntax & commands
Hi Ben,
Is there a particular reason why you need to use Word Basic. If this is going to be used with Word 97, you will get errors because Word97 doesn't recognize Word Basic methods and properties. If some of your clients have Word 95, and some have Word 97 you are going to have a problem, you will have to check the version and create 2 separate programs one for each different version of Word. Word 97 doesn't understand Word Basic and Word 95 can't interpret VBA. MS sure knows how to get ya don't they?
I've been bitten by this.
Jacci
>Hello All,
>
>I'm trying to instantiate a Word.Basic class object which will open a file. When I try the following code, I get an OLE error on the last line:
>
>oword = CreateObject("Word.Basic")
>oword.appshow
>oword.FileOpen("c:\temp\temp.doc")
>
>Can anyone tell me the correct Word.Basic syntax? Recording a macro in the Word 97 Visual Basic Editor is no help, since it uses VBA syntax as opposed to Word.Basic.
>
>Also, can anyone tell me where to find a Word.Basic help file, so I don't have to keep bothering people up here?
>
>Thanks,
>
>Ben Holton
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only