Re: whats wrong with my code



dlb1228 was telling us:
dlb1228 nous racontait que :

> i have a command button in my word doc and i have the following code
> Private Sub CommandButton1_Click()
> Emailtest.HasRoutingSlip = True
> With Emailtest.RoutingSlip
> .Subject = "Test"
> .AddRecipient "dbarbour@xxxxxxxx"
> .Delivery = wdAllAtOnce
> End With
> Emailtest.Route
>
> my goal is that when i click on the command button i want it to email
> the word doc to me anyone know what is wrong

No.
Maybe it has to do with "Emailtest". What is "Emailtest"?
You have to tell us what is going on... My crystal Ball is currently being
serviced so I cannot guess correctly what undesired behaviour you are
getting when running your macro and what you expected instead.

Meanwhile, double check your code with the one posted at:
http://word.mvps.org/FAQs/InterDev/SendMail.htm


--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@xxxxxxxxxxxxxxxxxxxxxxx
Word MVP site: http://www.word.mvps.org


.