Re: whats wrong with my code
- From: "Jean-Guy Marcil" <NoSpam@LeaveMeAlone>
- Date: Thu, 3 Nov 2005 11:17:38 -0500
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
.
- Prev by Date: Re: execute macro for all documents in the folder
- Next by Date: Re: problem with non-existing templates
- Previous by thread: Re: MoveRight in table fails at 1%: bug? workaround?
- Next by thread: Re: whats wrong with my code
- Index(es):