Currently I am opening a word document called Letter. In that word document I have a macro saved called mcrPerformMerge. Once the word document is open I want to run that macro. Is there a way? I have the section of code commented out below where I thought it should go. The word Run doesn't work alone, what should I put there?
Sub OpenWord()
Dim WordDoc As String
Dim WordApp As String
Dim FullPath As String
WordDoc = "H:\MyDocuments\Letter.doc"
WordApp = "G:\Office97\Office\WINWORD"
FullPath = WordApp & " " & WordDoc
Call Shell(FullPath, vbNormalFocus)
'Run ("Letter.doc!Project.NewMacros.mcrPerformMerge"
End Sub
Thanks for you help.
Sub OpenWord()
Dim WordDoc As String
Dim WordApp As String
Dim FullPath As String
WordDoc = "H:\MyDocuments\Letter.doc"
WordApp = "G:\Office97\Office\WINWORD"
FullPath = WordApp & " " & WordDoc
Call Shell(FullPath, vbNormalFocus)
'Run ("Letter.doc!Project.NewMacros.mcrPerformMerge"
End Sub
Thanks for you help.