causing a form to display in reply mode

  • Thread starter Thread starter Gary Lemmon
  • Start date Start date
G

Gary Lemmon

Now I need to make a message that has been selected pop up as if the user
hit the replyall button without any anti bug messages.

I have all of the code to select the email and have been using the reply
action to start the reply process. This is the point where I get the bug
traping dialogue.

Is there another way to effectivly display the email and click the reply all
button?

Thanks in advance

Gary
 
What "bug trapping dialogue" are you referring to? A code snippet might be useful.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Sorry, I tried to include a picture of the message box from outlook but it
made the message too big.

The dialogue reads
A program is trying to execute an action or verb on your behalf. Do you want
to allow this?
If tis is unexpected, it may be a virus and you should choose "No".

Here is the code.

Set objFolder = Session.GetDefaultFolder(olFolderCalendar)
Set oItem.MessageClass = objFolder.Items.Add("IPM.Note.Gary")
oItem.Actions("Reply").Execute

by the way thanks for taking an interest.

G

What "bug trapping dialogue" are you referring to? A code snippet might be
useful.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Ok this is resolved.

I set my selected mail object's reply method to a new object and then showed
that new object.

Set myItem = oItem.Reply
myItem.Display



What "bug trapping dialogue" are you referring to? A code snippet might be
useful.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Back
Top