View Single Post
 
Old 03-13-2013, 10:33 AM
smalc smalc is offline Windows 7 32bit Office 2010 32bit
Novice
 
Join Date: Mar 2013
Posts: 1
smalc is on a distinguished road
Default command button query

Hi All,
I hope someone can help me out. I've created an incident record form and am trying to include a command button at the bottom of the document that will automatically send it to my email when its filled out. I've tried the below macro for the command button but am having some issues; The second line keeps giving the message "<that method is not available on that object>". I'm really not sure what i'm doing, if anyone could help it's be greatly appreciated. Thanks Smalc

Private Sub CommandButton1_Click()

ActiveDocument.HasRoutingSlip = True
With ActiveDocument.RoutingSlip
.Subject = "incident"
.AddRecipient "dutymanager@susu.org"
.Delivery = wdAllAtOnce
End With
ActiveDocument.Route

End Sub
Reply With Quote