p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Microsoft Office > Other Office > Word VBA
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Word VBA Discuss using VBA to program Word.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the Word VBA section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 12th, 2007, 06:01 PM
Registered User
 
Join Date: Mar 2007
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default General Mail Merge Query

Hi everyone, I have a quick 'is it possible' question

At my current job we have order info in a database and each week we run a report which extracts something similar to the following into an excel spreadsheet. It shows what each customer has bought

CustomerID Customer Name Order Cost
ABCD1 Acme £200
DEFG Widget £150
ABCD1 Acme £120

Basically, we then generate letters per line using mail merge but this is wasteful if the same customer has made multiple orders. Is there a simple way to get word to recognise multiple orders and create a line in the document for each item ordered? For example, using the data above, the end result would be 1 letter for Acme with two order items inserted instead of 2 seperate letters with one item each. Can anyone suggest a few basic steps for this or even advise how it might be done better (get it in access and use SQL to join then do something else?).

I really dont want to take up too much of anyones time, just wondering if anyone has done this before using VBA code or if it is going to be a nightmare. I have coded Outlook VBA code before so I should be capable of coding something quite nice but advice on a more elegant solution if available would be great.

Cheers
Iain

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Merge in Web aspBegineer83 ASP.NET 2.0 Basics 12 January 4th, 2008 06:00 PM
Mail Merge VBA Query jayp Excel VBA 1 October 14th, 2005 06:25 PM
Need Help In Mail Merge raghur Access VBA 0 September 8th, 2005 06:46 AM
General/e-mail Workshack BOOK: Expert One-on-One Access Application Development 0 June 15th, 2005 04:17 PM
mail merge from query nabrown78 Access VBA 3 April 4th, 2005 09:23 PM



All times are GMT -4. The time now is 06:40 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc