Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 28th, 2005, 05:11 AM
Registered User
Join Date: Jul 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access/Vba mail merge to word help


I have a couple of issues with a automated mail merge to word from vba. Does anyone know if there is a way to add a variable image field into the word selection, I have tried the 'objWord.Shapes.AddPicture' method and I can only get this to work using a specific image, however I require a different image(signature on letter) for certain records.

Secondly is there a way to insert certain fields in the word selection range into a text box, namely address details to avoid letter drift, because I cannot find a way to add the image in a variable position depending on field population.

I know there are other mail merge methods which could be used but this method is quick and very effective for my requirements (well most of them). Any input would be very much appreciated.


'#### current code ####

objWordApp.Application.Visible = True

With objWord.MailMerge.Fields

Set oSel = objWord.Application.Selection

.Add oSel.Range, "contact"

'######### etc

oSel.TypeText "Letter text - bla - bla"
.Add oSel.Range, "signoff"

End With


Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Merge with Access VBA echovue Access 6 May 5th, 2006 05:11 PM
"Pushing" from Access to Word via Mail Merge Loralee BOOK: Access 2003 VBA Programmer's Reference 2 March 8th, 2006 10:20 PM
Access launching Word for mail merge Loralee Access 8 November 14th, 2005 04:24 PM
Access to Word Mail Merge Automation kareltje Access VBA 6 June 9th, 2005 04:54 AM
Word E-Mail Merge using Access Tables Richard Lally Access 2 February 7th, 2005 04:48 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.