#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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.
|
#3
|
||||
|
||||
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 |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Newbie Wants to Add Print Command Button! | PapaTom | PowerPoint | 7 | 02-25-2013 06:12 PM |
Command Button to Print Labels | Claytocb | Excel Programming | 1 | 02-01-2013 12:20 AM |
Command Button will not work when document is protected | brockjensen | Word | 1 | 11-02-2012 06:59 PM |
Command Button doesnt work on network | rmw85 | Word VBA | 1 | 04-25-2012 01:02 PM |
Command Button | cksm4 | Word VBA | 7 | 02-27-2011 08:47 PM |