Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / November 2005

Tip: Looking for answers? Try searching our database.

Excel datasource

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mdthomann@gmail.com - 14 Nov 2005 17:54 GMT
I would like to add the path and filename of my datasource for an email
merge.  The merge itself works great.

But to help me keep track of data, I would like to add the path and
filename of the datasource.

Similiar to FILENAME \p but for datasource.

Thanks
Doug Robbins - Word MVP - 14 Nov 2005 20:10 GMT
Use the following macro to insert the datasource with it's path at the
location of the selection:

With ActiveDocument
   If .MailMerge.State = wdMainAndDataSource Then
       Selection.InsertBefore .MailMerge.DataSource.Name
   End If
End With

Signature

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

>I would like to add the path and filename of my datasource for an email
> merge.  The merge itself works great.
[quoted text clipped - 5 lines]
>
> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.