Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-12-2012, 07:15 AM
MathTeacherMelanie MathTeacherMelanie is offline Merge data repeatedly in a single document Windows XP Merge data repeatedly in a single document Office 2010 32bit
Novice
Merge data repeatedly in a single document
 
Join Date: Nov 2012
Location: Greater Cincinnati, Ohio / Northern Kentucky Area
Posts: 7
MathTeacherMelanie is on a distinguished road
Question Merge data repeatedly in a single document

I am trying to automate writing a document that requires a list of people to appear in multiple locations in the document. I have a spreadsheet that contains this list, but I have not found a way for Mail Merge to "cycle through" the list more than once. It is silly to copy the list over and over inside the spreadsheet, but I have not found another way to make this work. Please help if you have any ideas or suggestions on a better way to accomplish this task!
Reply With Quote
  #2  
Old 11-12-2012, 02:58 PM
macropod's Avatar
macropod macropod is offline Merge data repeatedly in a single document Windows 7 64bit Merge data repeatedly in a single document Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You could simply bookmark the list range, then insert a cross-reference to the bookmark wherever else you want the list to appear.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 11-13-2012, 08:17 AM
MathTeacherMelanie MathTeacherMelanie is offline Merge data repeatedly in a single document Windows XP Merge data repeatedly in a single document Office 2010 32bit
Novice
Merge data repeatedly in a single document
 
Join Date: Nov 2012
Location: Greater Cincinnati, Ohio / Northern Kentucky Area
Posts: 7
MathTeacherMelanie is on a distinguished road
Default syntax help

Since this is the first time I've used bookmarks across documents, I am struggling a little with the syntax. I input the text :

INCLUDE TEXT C:\\Documents and Settings\Owner\My Documents\_TLS Work\_Defendant Data.docx

into the document and after selecting the text I press CTRL-F9 to create the field. However I continue to receive an error stating "Error! Cannot open data source."

Also, I am not sure how to specify the bookmark I need from the specified file.

Any thoughts?
Reply With Quote
  #4  
Old 11-13-2012, 01:51 PM
macropod's Avatar
macropod macropod is offline Merge data repeatedly in a single document Windows 7 64bit Merge data repeatedly in a single document Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Melanie,

Apart from the fact this has nothing apparent to do with the mailmerge issue you posted about, your basic field code should look like:
{INCLUDETEXT "C:\\Documents and Settings\\Owner\\My Documents\\_TLS Work\\_Defendant Data.docx"}
This will import all of _Defendant Data.docx. To import only a bookmarked range, use:
{INCLUDETEXT "C:\\Documents and Settings\\Owner\\My Documents\\_TLS Work\\_Defendant Data.docx" "Bookmark"}
where 'Bookmark' is the bookmark's name.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 11-13-2012, 02:16 PM
MathTeacherMelanie MathTeacherMelanie is offline Merge data repeatedly in a single document Windows XP Merge data repeatedly in a single document Office 2010 32bit
Novice
Merge data repeatedly in a single document
 
Join Date: Nov 2012
Location: Greater Cincinnati, Ohio / Northern Kentucky Area
Posts: 7
MathTeacherMelanie is on a distinguished road
Default

I have no experience with cross references ... And I decided to try using a word document to house my list.
If you can provide some additional info on how to go about inserting one
for the bookmarks in my data doc I would appreciate the elightenment.
I know I must be making this task overly difficult...
Reply With Quote
  #6  
Old 11-13-2012, 02:28 PM
macropod's Avatar
macropod macropod is offline Merge data repeatedly in a single document Windows 7 64bit Merge data repeatedly in a single document Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Melanie,

To use a cross-reference, first bookmark the thing you want to cross-reference (Insert|Bookmark). Then, wherever you want the cross-reference to appear, use Insert|Cross-reference>Bookmark and select the relevant bookmark. That's all there is to it. I have no idea why you're trying to use an INCLUDETEXT field.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #7  
Old 11-13-2012, 02:50 PM
MathTeacherMelanie MathTeacherMelanie is offline Merge data repeatedly in a single document Windows XP Merge data repeatedly in a single document Office 2010 32bit
Novice
Merge data repeatedly in a single document
 
Join Date: Nov 2012
Location: Greater Cincinnati, Ohio / Northern Kentucky Area
Posts: 7
MathTeacherMelanie is on a distinguished road
Cool

I may have over-simplified my description of the task in the original post. I am collecting a variety of data from several sources and creating one "master data" document. Inside that data doc there is a list of names that needs to be placed inside the Legal Complaint document I am creating several times as well as a variety of other data that may vary between Complaint documents. I want to create a master "shell" for the complaint that I can then attach to the Master Data document and pull out the required info in the required locations so that I have some reusability of the shell (sans specific case data). So mail Merge was were I started ... and that didn't work out so well for every item I needed to include. I think I am going to need to use a variety of tools to accomplish this task. The includetext statement was something I was using to attempt to reference a data doc bookmark's contents in this Shell doc. It seems in trying to create less work in the future I have made it difficult on myself this first go-around!
Reply With Quote
  #8  
Old 11-13-2012, 03:01 PM
MathTeacherMelanie MathTeacherMelanie is offline Merge data repeatedly in a single document Windows XP Merge data repeatedly in a single document Office 2010 32bit
Novice
Merge data repeatedly in a single document
 
Join Date: Nov 2012
Location: Greater Cincinnati, Ohio / Northern Kentucky Area
Posts: 7
MathTeacherMelanie is on a distinguished road
Default

I created bookmarks in my Master Data document, however just using the interface to insert a cross-reference in the Shell doc as you describe does not give me a list of bookmarks from the data doc ... not sure how to enter a path to the file.

Then suddenly it seemed as if my INCLUDE TEXT could read the file and import it.... and the bookmarks were available from the data doc.

Remove the INCLUDE TEXT and we are back to cannot connect to data source and no bookmarks from the data doc available either.
Reply With Quote
  #9  
Old 11-13-2012, 04:44 PM
MathTeacherMelanie MathTeacherMelanie is offline Merge data repeatedly in a single document Windows XP Merge data repeatedly in a single document Office 2010 32bit
Novice
Merge data repeatedly in a single document
 
Join Date: Nov 2012
Location: Greater Cincinnati, Ohio / Northern Kentucky Area
Posts: 7
MathTeacherMelanie is on a distinguished road
Default sample

here's a sample of what I am trying to do ... very stripped down of couse...
Attached Files
File Type: docx data.docx (13.8 KB, 8 views)
File Type: docx Shell.docx (15.2 KB, 8 views)
Reply With Quote
  #10  
Old 11-13-2012, 06:55 PM
macropod's Avatar
macropod macropod is offline Merge data repeatedly in a single document Windows 7 64bit Merge data repeatedly in a single document Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Melanie,

Given your data structure, you would need to use Word's Catalogue/Directory Mailmerge facility for this (the terminology depends on the Word version). To produce the kind of output you're after, this requires much more complex filed coding than a standard letter merge - and neither the INCLUDETEXT field nor the bookmarking and cros--referencing we've been discussing might be applicable. To see how to create such a mailmerge with any data source supported by Word, check out my Microsoft Word Catalogue/Directory Mailmerge Tutorial at:
http://windowssecrets.com/forums/sho...ngs-(2000-2010)
or
http://www.gmayor.com/Zips/Catalogue%20Mailmerge.zip

The tutorial covers everything from list creation to the insertion & calculation of values in multi-record tables in letters. Do read the tutorial before trying to use the mailmerge document included with it. Although the tutorial's data are in an Excel workbook, the fields work equally well with Word tables.

For some worked examples, see the attachment to the posts at:
https://www.msofficeforums.com/mail-...html#post23345
https://www.msofficeforums.com/mail-...html#post30327

Alternatively, you may want to try the Many-to-One Mail Merge add-in from Graham Mayor at: http://www.gmayor.com/ManyToOne.htm
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #11  
Old 11-13-2012, 07:05 PM
MathTeacherMelanie MathTeacherMelanie is offline Merge data repeatedly in a single document Windows XP Merge data repeatedly in a single document Office 2010 32bit
Novice
Merge data repeatedly in a single document
 
Join Date: Nov 2012
Location: Greater Cincinnati, Ohio / Northern Kentucky Area
Posts: 7
MathTeacherMelanie is on a distinguished road
Default

Thanks! It gives me a lot to review! Seems like such a simple task on the surface.... But the work upfront will make my job easier in the future! You've been a great resource!! I'll post again after I look at all this info!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Export data from multiple attachments into a single excel document Woolstar Outlook 0 12-07-2011 09:49 AM
Mail Merge saved to single .pdf treetop Mail Merge 1 08-10-2011 03:28 PM
Merge data repeatedly in a single document Copying Multiple tables from excel into a single word document dineshtgs Word Tables 1 04-07-2011 01:27 AM
Merge data repeatedly in a single document moving data from single to multiple columns? mzimmers Excel 3 08-23-2010 08:20 AM
Mail Merge--different connections of Access in Single Word File. Goldenbird Mail Merge 3 06-12-2009 06:42 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:53 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft