Board index » delphi » how to add a module into a worddocument

how to add a module into a worddocument


2005-06-07 03:03:40 PM
delphi34
Good Morning,
how can i add a VB(Visual Basic) code like
Sub FileSave()
If ActiveDocument.Path = "" Then
FileSaveAs
Exit Sub
End If
If BeforeSaveCheck = True Then
ActiveDocument.Save
End Sub
into a new or loaded worddocument at runtime?
I use TWordApplication and TWordDocument within my delphi 6 enterprise
Application to access msword.
Thank for help.
 
 

Re:how to add a module into a worddocument