MailMerge Label printing from Excel
Word will follow what Excel's tells it to do. So sounds like a problem with
Word rather than Excel.
Maybe because you have not fully qualified all objects. e.g.
With ActiveDocument.MailMerge
Excel does not know what that means. Maybe you need
With .ActiveDocument.MailMerge
NickHK
"Ed" wrote in message
...
I have been running the macro I created in Word, trying to figure out
why it won't run in Excel.
The difference seems to be that my LabelLayout.doc does not open with
MailMerge attributes.
That is, after opening in the Excel VBA function the
ActiveDocument.MailMerge doesn't have
a DataSource name, QueryString, etc. I tried to do this by setting
them:
ActiveDocument.MailMerge.DataSource.Name = .Path &
"\JOCMembership.xls"
but that doesn't work since .Name is read only.
So, how do I open the LabelLayout.doc file in the Excel function so
that it has MailMerge
attributes?
Ed
|