Wrox Programmer Forums
|
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 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 January 30th, 2006, 11:46 AM
Registered User
 
Join Date: Jan 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default word problem

I would like to know if it is possible:
I have a word dokument which has to be distributed to a couple of persons. I was thinking to do the checkboxes. Names whos checkbox is checkt shoud automaticly receive the copy of the document. Is this possible? And if yes, how. Can somebody help me?
 
Old February 2nd, 2006, 04:54 PM
Registered User
 
Join Date: Dec 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to matpen
Default

Hi Marindi
I am sorry but I am not getting the slightest idea of what you want to do. describe in detail your box, how the addresses are read? (Email addresses?) And how the recipients are going to receive “automatically” the document per fax, per email? Please describe precisely the whole scenario and try to name all the objects and their functions (of the scenario) otherwise we simply give up…

 
Old February 13th, 2006, 12:31 PM
Registered User
 
Join Date: Jan 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

first of all thank you very much for the answer. I was in Germany last week. I already gave up with this because nobody answers for days. I never did any thing with VBA before. I saw you come from Germany? Do you speak German?

Problem: I have a word document with checkboxes (5). If you check a checkbox the person should receive a email with the document attached. The best would be if more then one box is checked then one email should be send with all the recipients (and not a extra mail on each one. I want to have a note too. Something like: "The document has been send to the following recipients: P.Blue, M.Red, B.Green...".
But first I want to get it work!!!!
I start to write the code.But it doesnt work...!!!

Here is a code that I start to write.

Private Sub CheckBox1_Click()

If CheckBox1.Value = True Then
Options.SendMailAttach = True
With Application.ActiveDocument.MailEnvelope
.Introduction = "Please read this and send me your comments."
With Documents("C:\Documents and Settings\xxxxx\Desktop\Template\To.doc").MailMerge
    .MailAddressFieldName = "[email protected]"
    .MailSubject = "Service Info"
    .Destination = wdSendToEmail
    .Execute
End With

    End With
End If
End Sub


I hope you can help me!!!! Danke, Danke, Danke!!!!





Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with export to word an image ultra08rrg Pro JSP 1 December 20th, 2006 03:41 AM
Help!! Problem instantiating WORD object using C#. handymulia ASP.NET 1.0 and 1.1 Basics 3 November 16th, 2006 05:18 PM
Help!! Problem instantiating WORD object using C#. handymulia ASP.NET 1.0 and 1.1 Professional 1 June 2nd, 2005 12:55 AM
IE6 word-wrap problem? beckfield XSLT 5 March 4th, 2005 02:59 PM





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