A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Hide Template on Copletion of Merge



 
 
Thread Tools Display Modes
  #1  
Old August 26th, 2009, 07:54 PM posted to microsoft.public.word.mailmerge.fields
4charity
external usenet poster
 
Posts: 28
Default Hide Template on Copletion of Merge

I am using Access to populate a document using MailMerge in Word. My letter
comes out fine. Once the end-user reviews the letter and saves it and closes
it, the template appears on the screen and asks the user if s/he would like
to save changes to it. I would like for the template to not appear at all, as
I do not want the endusers to have the ability to make changes to it!

Is there some code I can attach to the template to do this?
Also, I am pretty new to VB, so please be as descriptive as possible
Thanks!

  #2  
Old August 26th, 2009, 08:13 PM posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
external usenet poster
 
Posts: 4,550
Default Hide Template on Copletion of Merge

See the recent conversation titled "Mail Merge Automation Code problem"
for one bit of code that seems to have done the trick for at least one
person.

Peter Jamieson

http://tips.pjmsn.me.uk

4charity wrote:
I am using Access to populate a document using MailMerge in Word. My letter
comes out fine. Once the end-user reviews the letter and saves it and closes
it, the template appears on the screen and asks the user if s/he would like
to save changes to it. I would like for the template to not appear at all, as
I do not want the endusers to have the ability to make changes to it!

Is there some code I can attach to the template to do this?
Also, I am pretty new to VB, so please be as descriptive as possible
Thanks!

  #3  
Old August 26th, 2009, 09:26 PM posted to microsoft.public.word.mailmerge.fields
4charity
external usenet poster
 
Posts: 28
Default Hide Template on Copletion of Merge

Thanks, Peter.

I don't know how I missed that post.
Actually, right before me End If statement I added in:

'close the orginal file
objWord.Close wdDoNotSaveChanges

This worked well too.

Thanks for your help!



"Peter Jamieson" wrote:

See the recent conversation titled "Mail Merge Automation Code problem"
for one bit of code that seems to have done the trick for at least one
person.

Peter Jamieson

http://tips.pjmsn.me.uk

4charity wrote:
I am using Access to populate a document using MailMerge in Word. My letter
comes out fine. Once the end-user reviews the letter and saves it and closes
it, the template appears on the screen and asks the user if s/he would like
to save changes to it. I would like for the template to not appear at all, as
I do not want the endusers to have the ability to make changes to it!

Is there some code I can attach to the template to do this?
Also, I am pretty new to VB, so please be as descriptive as possible
Thanks!


 




Thread Tools
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
Forum Jump


All times are GMT +1. The time now is 06:17 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.