L
Les
Hi,
I am trying to automate WORD via VBScript and cannot find references to the
word object model as could be used from VBScript. I can find it for VB, but
this is not sufficient to find out the order of parameters for example, or
what the properties and methods I can use are.
For example copying a line from VBA for opening a file (with slight
modifications) is:
Set Doc = oWord.Documents.Open (FileName:="2004CGC.TXT",
ConfirmConversions:=True, ReadOnly:=False, _
AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate:="", _
Revert:=False, WritePasswordDocument:="", WritePasswordTemplate:="", _
Format:=wdOpenFormatAuto, Encoding:=1252)
BUT
I cannot use parameter names in VBScript and do not know what the order of
parameters should be.
Also I'd like to know what parameters I could use to open a TXT document and
then save that as a WORD document.
Do you know of any reference that I can use to give me that information?
Any help is most appreciated.
Cheers,
Les
I am trying to automate WORD via VBScript and cannot find references to the
word object model as could be used from VBScript. I can find it for VB, but
this is not sufficient to find out the order of parameters for example, or
what the properties and methods I can use are.
For example copying a line from VBA for opening a file (with slight
modifications) is:
Set Doc = oWord.Documents.Open (FileName:="2004CGC.TXT",
ConfirmConversions:=True, ReadOnly:=False, _
AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate:="", _
Revert:=False, WritePasswordDocument:="", WritePasswordTemplate:="", _
Format:=wdOpenFormatAuto, Encoding:=1252)
BUT
I cannot use parameter names in VBScript and do not know what the order of
parameters should be.
Also I'd like to know what parameters I could use to open a TXT document and
then save that as a WORD document.
Do you know of any reference that I can use to give me that information?
Any help is most appreciated.
Cheers,
Les