Hi,
I wonder if its possible to programmaticaly create a Word document with macros in it, using only WSH (Windows Script Hosting) and VBScript.
I have created it already, but cant insert the macro. Sure I could do this by using a model with the macro in it, but my doubt is if its possible to create it all by code.
My code is:
[VBA]
Dim objWord
Set objWord = CreateObject ( "Word.Basic" )
objWord.FileNew ( "Normal" )
objWord.Insert "WORD TEST"
objWord.FileSaveAs ( "c:\tstWord.doc" )
objWord.FileClose
[/VBA]