S
shokiegupta
Can anyone please help me with this? I am trying to insert a VB macro
(2 line code) in MS word documnet (programatically!!).
Here is what i am doing:
Dim odoc As Word.Document
Set wordApp = New Word.Application
With wordApp
Set odoc = .Documents.Open(App.Path & "\sample.doc", , False)
<something needs to be done here>
odoc.Save
odoc.Close
End With
Set odoc = Nothing
Set wordApp = Nothing
So dont know how to insert macro code here in this word document
(programatically).
Any help would be appriciated! Thanks!
(2 line code) in MS word documnet (programatically!!).
Here is what i am doing:
Dim odoc As Word.Document
Set wordApp = New Word.Application
With wordApp
Set odoc = .Documents.Open(App.Path & "\sample.doc", , False)
<something needs to be done here>
odoc.Save
odoc.Close
End With
Set odoc = Nothing
Set wordApp = Nothing
So dont know how to insert macro code here in this word document
(programatically).
Any help would be appriciated! Thanks!