Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Tom Mailhot Tom Mailhot is offline
external usenet poster
 
Posts: 2
Default Can I create MailMerge template without a Data Source?

In previous versions of Word up through 2003 I could create a Mail Merge
template document by attaching just a header file using the
WordBasic.MailMergeOpenHeaderSource command. That allowed an administrative
user to create the Mail Merge document prior to the actual selection of the
merge data.

With Word 2007 I can't find a nice way to do that. Word now seems to
require a data source also be attached before it will allow any merge fields
to be added to the document. One workaround I've found is that I can attach
the header file as both the header source and the data source. Anyone have
something more elegant they can offer?

Thanks!
--
Tom
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Can I create MailMerge template without a Data Source?

Anyone have
something more elegant they can offer?


Clearly I am not the person to give a positive answer, but...

Yes, support for Header Sources has been dwindling version by version.

However, what Header sources ever gave you, in effect, was a list of field
names and the facility to insert MERGEFIELD fields with those names into
your Mail Merge Main Document, without actually having to have any data
source or a even a particular type of data source. I suppose that if you do
not have Header Sources, you also lose the idea that users working with that
Mail Merge Main Document should /only/ be able to use the fields specified
in the Header source.

Other than that, as far as I can tell, that isn't very much different from
either
a. using your header source as an initial data source (although you might
need to put some data in your header source, e.g. by duplicating the header
row so every column has some text data)
b. setting up your mail merge main document fields using that data source
c. disconnecting the "header" source before you save the mail merge main
document, by clicking the Mailings tab, Start Mail Merge-Normal Word
Document option. You will lose any sort/filter options you set up.
d. letting the user choose the data source after they open the document.

or perhaps (a)+(b)+(d), assuming the user has a copy of the "header" source
and understands that they have to connect to the real data source instead.

--
Peter Jamieson
http://tips.pjmsn.me.uk

"Tom Mailhot" wrote in message
...
In previous versions of Word up through 2003 I could create a Mail Merge
template document by attaching just a header file using the
WordBasic.MailMergeOpenHeaderSource command. That allowed an
administrative
user to create the Mail Merge document prior to the actual selection of
the
merge data.

With Word 2007 I can't find a nice way to do that. Word now seems to
require a data source also be attached before it will allow any merge
fields
to be added to the document. One workaround I've found is that I can
attach
the header file as both the header source and the data source. Anyone
have
something more elegant they can offer?

Thanks!
--
Tom


  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Tom Mailhot Tom Mailhot is offline
external usenet poster
 
Posts: 2
Default Can I create MailMerge template without a Data Source?

Thanks, Peter. I think you confirmed what I concluded after thinking about
it a bit more - using the header source as the data source when creating a
new template makes as much sense as anything.

My application automates most of the mail merge process so when the template
is actually used to create a form letter my app will create the header and
data sources, connect them to the document, start Word, and merge the data so
all the user has to do is review the resulting merged document and print it.
All that seems to to work fine, I was just have an issue figuring out how to
create a new template.

--
Tom


"Peter Jamieson" wrote:

Anyone have
something more elegant they can offer?


Clearly I am not the person to give a positive answer, but...

Yes, support for Header Sources has been dwindling version by version.

However, what Header sources ever gave you, in effect, was a list of field
names and the facility to insert MERGEFIELD fields with those names into
your Mail Merge Main Document, without actually having to have any data
source or a even a particular type of data source. I suppose that if you do
not have Header Sources, you also lose the idea that users working with that
Mail Merge Main Document should /only/ be able to use the fields specified
in the Header source.

Other than that, as far as I can tell, that isn't very much different from
either
a. using your header source as an initial data source (although you might
need to put some data in your header source, e.g. by duplicating the header
row so every column has some text data)
b. setting up your mail merge main document fields using that data source
c. disconnecting the "header" source before you save the mail merge main
document, by clicking the Mailings tab, Start Mail Merge-Normal Word
Document option. You will lose any sort/filter options you set up.
d. letting the user choose the data source after they open the document.

or perhaps (a)+(b)+(d), assuming the user has a copy of the "header" source
and understands that they have to connect to the real data source instead.

--
Peter Jamieson
http://tips.pjmsn.me.uk

"Tom Mailhot" wrote in message
...
In previous versions of Word up through 2003 I could create a Mail Merge
template document by attaching just a header file using the
WordBasic.MailMergeOpenHeaderSource command. That allowed an
administrative
user to create the Mail Merge document prior to the actual selection of
the
merge data.

With Word 2007 I can't find a nice way to do that. Word now seems to
require a data source also be attached before it will allow any merge
fields
to be added to the document. One workaround I've found is that I can
attach
the header file as both the header source and the data source. Anyone
have
something more elegant they can offer?

Thanks!
--
Tom



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to link a different Mailmerge header source and data source? Eleni_Malli Mailmerge 1 May 3rd 06 02:08 PM
Can I use mailmerge to create ind docs from source data? M Caylor Mailmerge 1 March 10th 06 05:05 AM
Why will mailmerge not use all the fields from data source? Jenny H Mailmerge 3 February 20th 06 05:03 PM
Excel as mailmerge data source Mary Ann Mailmerge 2 December 6th 05 06:10 PM
HOW LARGE CAN A MAILMERGE DATA SOURCE BE? Cynthia Pryor Mailmerge 1 May 7th 05 11:00 PM


All times are GMT +1. The time now is 04:35 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"