Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Windows XP

Windows XP Discuss the Microsoft Windows XP Operating System

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 01-04-2007, 06:41 AM
HELP
Newsgroup Contributor
 
Posts: n/a
Command Button to send word email attachment

I have created a command button "submit" on a word document and have tried to
create a macro to email it, however i have done something wrong as the
attachment is not being created. Could someone please help me ASAP!

Sub CommandButton1_Click()

Dim Email As Object
Dim Attachment As String

Set Email = CreateObject("Outlook.Application") 'Assign Outlook application
to variable


With Email.CreateItem(olMailItem)
.to = "<>" 'email address
.Subject = "Incident Report" 'Something for the subject Field
.body = ActiveDocument
.Display = Attachment

Options.SendMailAttach = True


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

 
Old 01-04-2007, 06:41 AM
  #2 (permalink)  
Old 01-04-2007, 06:41 AM
Rock
Newsgroup Contributor
 
Posts: n/a
Re: Command Button to send word email attachment

"HELP" <HELP@discussions.microsoft.com> wrote in message
news:29DC6315-FB1A-4C63-ABD9-B3229E37BFCF@microsoft.com...
>I have created a command button "submit" on a word document and have tried
>to
> create a macro to email it, however i have done something wrong as the
> attachment is not being created. Could someone please help me ASAP!
>
> Sub CommandButton1_Click()
>
> Dim Email As Object
> Dim Attachment As String
>
> Set Email = CreateObject("Outlook.Application") 'Assign Outlook
> application
> to variable
>
>
> With Email.CreateItem(olMailItem)
> .to = "<>" 'email address
> .Subject = "Incident Report" 'Something for the subject Field
> .body = ActiveDocument
> .Display = Attachment
>
> Options.SendMailAttach = True
>
>
> End With



You might want to post to a Word newsgroup.

--
Rock [MVP - User/Shell]

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

Reply

Bookmarks

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: MS Word 2003 - Cannot send document to email as attachment flyfisher Microsoft Office 1 12-10-2008 10:40 AM
Send To email recipient doc as attachment does not work Gautam Banerjea Microsoft Office 2 09-05-2007 01:10 PM
sending attachment from word etc by using send as attachment butto SoniaC Microsoft Office 0 05-30-2007 03:00 AM
send to mail recipient ( as Attachment) the email will not send. kfoster@pfeinc.com Microsoft Office 2 04-18-2007 09:01 AM
Cant send email the send button wont show up w/ outlook? samonger4 Microsoft Office 0 03-09-2007 07:15 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 10:11 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0