Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 03-16-2015, 08:44 AM
dkohnken dkohnken is offline command button query Windows 7 64bit command button query Office 2013
Novice
 
Join Date: Mar 2015
Posts: 3
dkohnken is on a distinguished road
Default

I recently tried using that method with the same results. I believe I read that it is not available from 2007 on up. I may be wrong, maybe someone else can chime in and either confirm or deny this. I have abandoned using it.
Reply With Quote
  #3  
Old 03-16-2015, 08:26 PM
Guessed's Avatar
Guessed Guessed is offline command button query Windows 7 32bit command button query Office 2010 32bit
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,932
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

It looks to have been replaced with a SendMail method which doesn't work as simply. Have a look at the following for a functional replacement.

https://groups.google.com/forum/#!to...al/wFgh5VZt8VE
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply

Thread Tools
Display Modes


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 09:19 AM.


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