Computer Forum Forum Index
Register  FAQ Profile Log in to check your private messages Log in Register 

MS word 2007 sending document via email as attachment (keepi

 
Post new topic   Reply to topic    Computer Forum Forum Index -> microsoft word vba beginners
View previous topic :: View next topic  
Author Message
Rob W
Guest





PostPosted: Sat Dec 08, 2007 4:15 pm    Post subject: MS word 2007 sending document via email as attachment (keepi Reply with quote

Greetings,

I am wanting to send a questionnaire via word (It must keep its formatting
as is full of list box and other controls), so I recorded the macro of using
the word 2007 option to send email

ActiveDocument.SendMail

I then want to add a subject, recipients and even a message would be a nice
bonus! Which I dont think is supported via .SendMail

I googl'd around and found

http://word.mvps.org/FAQs/InterDev/SendMail.htm

The first method roundslip doesnt appear to work as error appears ..

Run-time error '5892';
Method 'HasRoutingSlip' of object '_Document' failed.

The second method cant be applied due to the formattign issue, plus Im sure
it could be done simpler.

Any advice or assistance would be appreciated.

Cheers
Rob W
Back to top
Google
Sponsor





PostPosted: Sat Dec 08, 2007 4:15 pm    Post subject: Advertisement

Back to top
Graham Mayor
Guest





PostPosted: Sun Dec 09, 2007 6:54 am    Post subject: Re: MS word 2007 sending document via email as attachment (k Reply with quote

The only way you will succeed with this is to send the document as an
attachment as Word Document and HTML have different formatting requirements.
See the article prepared by fellow MVP Doug Robbins at
http://word.mvps.org/FAQs/MailMerge/MergeWithAttachments.htm . However then
you will find that a majority of your potential recipients will not have
Word 2007. Back to the drawing board!

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

Rob W wrote:
Quote:
Greetings,

I am wanting to send a questionnaire via word (It must keep its
formatting as is full of list box and other controls), so I recorded
the macro of using the word 2007 option to send email

ActiveDocument.SendMail

I then want to add a subject, recipients and even a message would be
a nice bonus! Which I dont think is supported via .SendMail

I googl'd around and found

http://word.mvps.org/FAQs/InterDev/SendMail.htm

The first method roundslip doesnt appear to work as error appears ..

Run-time error '5892';
Method 'HasRoutingSlip' of object '_Document' failed.

The second method cant be applied due to the formattign issue, plus
Im sure it could be done simpler.

Any advice or assistance would be appreciated.

Cheers
Rob W
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Computer Forum Forum Index -> microsoft word vba beginners All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Computer Forum