|
-
Apr 14th, 2000, 05:26 AM
#1
Thread Starter
New Member
I wrote a macro to send a document write to your email. But I was wondering how to automatically set who it is sent to. Something like .To = "[email protected]"
Here is the code now.
Dim Ans, Msg
Msg = "Do you wish to E-mail this form?"
Ans = MsgBox(Msg, vbYesNo + vbQuestion, "E-mail Form")
Options.SendMailAttach = True
If Ans = vbYes Then Word.ActiveDocument.SendMail
If Ans = vbNo Then End
This opens Outlook 98 but I know the useres will forget to enter the right email address. So it has to be pre-specified.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|