D
DuncanL
As part of a software build process, I need to compile some VBA in a Word
template.
Currently we have to manually open the .dot file, open VBA (Alt+F11), select
Compile from the debug menu, save the template and exit.
Using Visual Build Pro I can script the opening, save and close using
VBScript - eg:
---------------
Dim oWord
Dim oDoc
Set oWord = CreateObject("Word.Application")
Set oDoc = oWord.Documents.Open("C:\SomePlace\SomeFile.dot")
' xxxx Do Compile here? xxxx
oDoc.Save
oDoc.Close
oWord.Quit
Set oDoc = Nothing
Set oWord = Nothing
template.
Currently we have to manually open the .dot file, open VBA (Alt+F11), select
Compile from the debug menu, save the template and exit.
Using Visual Build Pro I can script the opening, save and close using
VBScript - eg:
---------------
Dim oWord
Dim oDoc
Set oWord = CreateObject("Word.Application")
Set oDoc = oWord.Documents.Open("C:\SomePlace\SomeFile.dot")
' xxxx Do Compile here? xxxx
oDoc.Save
oDoc.Close
oWord.Quit
Set oDoc = Nothing
Set oWord = Nothing