T
Todd K.
I am trying to run a Word Merge from a macro in Access 2003. I have a module
with the following:
Private Sub MergeIt()
Dim oApp As Object
Set oApp = CreateObject("Word.Application")
oApp.Visible = True
Dim objWord As Object
Set objWord = GetObject("C:\Documents and Settings\dlg-todd.kirby\My
Documents\MOA-Practice.doc", "Word.Document")
objWord.Application.Visible = True
End Sub
In my macro, I have the command OpenModule where I have specified the module
name from the dropdown, but there is no dropdown for the procedure name. I
entered MergeIt() in the procedure name, but I am getting an error saying it
can't find the procedure. What am I doing wrong?
with the following:
Private Sub MergeIt()
Dim oApp As Object
Set oApp = CreateObject("Word.Application")
oApp.Visible = True
Dim objWord As Object
Set objWord = GetObject("C:\Documents and Settings\dlg-todd.kirby\My
Documents\MOA-Practice.doc", "Word.Document")
objWord.Application.Visible = True
End Sub
In my macro, I have the command OpenModule where I have specified the module
name from the dropdown, but there is no dropdown for the procedure name. I
entered MergeIt() in the procedure name, but I am getting an error saying it
can't find the procedure. What am I doing wrong?