Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-13-2013, 10:33 AM
smalc smalc is offline command button query Windows 7 32bit command button query Office 2010 32bit
Novice
command button query
 
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
command button query Newbie Wants to Add Print Command Button! PapaTom PowerPoint 7 02-25-2013 06:12 PM
command button query Command Button to Print Labels Claytocb Excel Programming 1 02-01-2013 12:20 AM
command button query Command Button will not work when document is protected brockjensen Word 1 11-02-2012 06:59 PM
command button query Command Button doesnt work on network rmw85 Word VBA 1 04-25-2012 01:02 PM
command button query Command Button cksm4 Word VBA 7 02-27-2011 08:47 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:48 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft