PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Outlook Redemption

Reply

Outlook Redemption

 
Thread Tools Rate Thread
Old 16-03-2006, 05:38 PM   #1
=?Utf-8?B?ZmdpYmJjb2xsaW5z?=
Guest
 
Posts: n/a
Default Outlook Redemption


In Access I have the following code in the click event of a command button.
It copies the body of an email message selected in an Outlook View Control
into a cooresponding memo field on the form. It works fine, but I want to
get rid of the Outlook security pop ups. I've downloaded and installed
Outlook Redemption, but I can't figure out where to insert the code and which
safe object to use. Redemption doesn't have a safeSelection or safeItem.
Any assistance would be greatly appreaciated.
Thanks,
Frank

Private Sub CmdCopyEmail_Click()
Dim CopyItem As Outlook.Selection
Dim CopyMail As Object
Dim x As Integer

With OutlookViewCtl
Set CopyItem = OutlookViewCtl.Selection
For x = 1 To CopyItem.Count
Notes = CopyItem.Item(x).Body
Next x
End With
End Sub

  Reply With Quote
Old 16-03-2006, 05:43 PM   #2
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: Outlook Redemption

Something like this:

Set CopyItem = OutlookViewCtl.Selection
Set sMail = CreateObject("Redemption.SafeMailItem")
For Each itm in CopyItem
sMail.Item = itm
Notes = Notes & vbCrLf & vbCrLf & sMail.Body
Next
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"fgibbcollins" <fgibbcollins@discussions.microsoft.com> wrote in message news:613B6F07-2062-4506-9EF7-DF3FCB98CCEC@microsoft.com...
> In Access I have the following code in the click event of a command button.
> It copies the body of an email message selected in an Outlook View Control
> into a cooresponding memo field on the form. It works fine, but I want to
> get rid of the Outlook security pop ups. I've downloaded and installed
> Outlook Redemption, but I can't figure out where to insert the code and which
> safe object to use. Redemption doesn't have a safeSelection or safeItem.
> Any assistance would be greatly appreaciated.
> Thanks,
> Frank
>
> Private Sub CmdCopyEmail_Click()
> Dim CopyItem As Outlook.Selection
> Dim CopyMail As Object
> Dim x As Integer
>
> With OutlookViewCtl
> Set CopyItem = OutlookViewCtl.Selection
> For x = 1 To CopyItem.Count
> Notes = CopyItem.Item(x).Body
> Next x
> End With
> End Sub
>

  Reply With Quote
Old 16-03-2006, 06:03 PM   #3
=?Utf-8?B?ZmdpYmJjb2xsaW5z?=
Guest
 
Posts: n/a
Default Re: Outlook Redemption

That works! Thanks Sue, you are an MVP

"Sue Mosher [MVP-Outlook]" wrote:

> Something like this:
>
> Set CopyItem = OutlookViewCtl.Selection
> Set sMail = CreateObject("Redemption.SafeMailItem")
> For Each itm in CopyItem
> sMail.Item = itm
> Notes = Notes & vbCrLf & vbCrLf & sMail.Body
> Next
> --
> Sue Mosher, Outlook MVP
> Author of Configuring Microsoft Outlook 2003
> http://www.turtleflock.com/olconfig/index.htm
> and Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
> "fgibbcollins" <fgibbcollins@discussions.microsoft.com> wrote in message news:613B6F07-2062-4506-9EF7-DF3FCB98CCEC@microsoft.com...
> > In Access I have the following code in the click event of a command button.
> > It copies the body of an email message selected in an Outlook View Control
> > into a cooresponding memo field on the form. It works fine, but I want to
> > get rid of the Outlook security pop ups. I've downloaded and installed
> > Outlook Redemption, but I can't figure out where to insert the code and which
> > safe object to use. Redemption doesn't have a safeSelection or safeItem.
> > Any assistance would be greatly appreaciated.
> > Thanks,
> > Frank
> >
> > Private Sub CmdCopyEmail_Click()
> > Dim CopyItem As Outlook.Selection
> > Dim CopyMail As Object
> > Dim x As Integer
> >
> > With OutlookViewCtl
> > Set CopyItem = OutlookViewCtl.Selection
> > For x = 1 To CopyItem.Count
> > Notes = CopyItem.Item(x).Body
> > Next x
> > End With
> > End Sub
> >

>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off