Mail merge in office 2007

P

Priya

My requirement is to create the mailmerge documents in office 2007 formats
i.e. using .docx and .docm. I am using a template for the same. I have
changed my template name from .dot to .dotm. I am saving the header document
as .docx and main document as .docm

when I try to reopen the mail merged main document, i am getting the
following error "The Office Open XML File cannot be opened because there are
problems with the contents". Please can this be sorted out. Does mailmerge
work with the office 2007 formats?
 
D

Doug Robbins - Word MVP

How did you change the template from .dot to .dotm? Simply by changing the
file name will not work. You would have to open the template using
File>Open and then use File>Save As and in the File Save As dialog, change
the the document type to Word Macro-Enabled Template (*.dotm).

However, are there any macros in the original template that require it to be
a macro-enabled template.

A final question is why do you need this to be in Office 2007 format? Word
2007 can use files in earlier formats for mail merge. If it ain't broke,
don't fix it.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
P

Priya

Doug,

Many thanks for this. I have saved the template, as you have specified. My
clients require everything in office 2007 formats.

Is there any way to do the same. I am new to this newsgroup and also VBA.
Please help me out to solve this.

Thanks,
Priya.
 
D

Doug Robbins - Word MVP

I am not quite sure where you are with this now.

Exactly what do you mean by "Is there any way to do the same."?

As asked previously, do you need to use the docm and dotm formats? Are
there any macros involved in what you are doing?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
P

Priya

Yes I am using a macro enabled template(.dotm). The mailmerge we are using
works as follows
1) Create a header document using a .inc file(.inc file is created from the
client system). The header document will have the datafield names.
2) Create the main document. I will select the header document during
mailmerge(select recepients).
3) finally from the client system we will just run a program that connects
these two documents with the database and gives us the mailmerge documents.

For step 1 and 2 I use the .dotm template.
I need to save the header and main documents as either .docx or .docm, as
the clients don't want them to be saved in word 97 - 2003 formats.

Please let me know if you need more information.

I am also facing another issue. As soon as I place my template in the
startup folder for Word, I am not able to use the File/Save As option. this
is existing from office 2000 version.

Thanks,
Akila
 
D

Doug Robbins - Word MVP

Show us all of the code that you are using in your template.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top