SendForReview VBA code doesn't work when I changed to PP 2007

  • Thread starter Thread starter Marc
  • Start date Start date
M

Marc

I'm a teacher who has created a program of quizzes and exams for students in
many facilities. I used the SendForReview in PP 2003 and it worked fine.
Now, with an upgrade to 2007, I get a message saying "Invalid request. This
method or procedure is no longer supported by this version of PowerPoint."

I'm not a programmer--is there an easier way around this problem?

(I tried saving the version in the compatability mode / earlier
versions--but no luck....)

Thanks
 
Office Developer Reference
MsoEnvelope.Item Property
Gets a MailItem object that can be used to send the document as an e-mail.
Read-only.
Syntax

expression.Item

expression Required. A variable that represents a MsoEnvelope object.

Example


The following example sends the active Microsoft Word document as an e-mail
to the e-mail address that you pass to the subroutine.

Visual Basic for Applications
Sub SendMail(ByVal strRecipient As String)

'Use a With...End With block to reference the msoEnvelope object.
With Application.ActiveDocument.MailEnvelope

'Add some introductory text before the body of the e-mail message.
.Introduction = "Please read this and send me your comments."

'Return a MailItem object that you can use to send the document.
With .Item

'All of the mail item settings are saved with the document.
'When you add a recipient to the Recipients collection
'or change other properties these settings will persist.

.Recipients.Add strRecipient
.Subject = "Here is the document."

'The body of this message will be
'the content of the active document.
.Send
End With
End With
End Sub


© 2007 Microsoft Corporation. All rights reserved.
 
Back
Top