Re: copy email to a task in vba
- From: Michael Bauer <mb@xxxxxxxx>
- Date: Fri, 3 Mar 2006 07:46:55 +0100
Am Thu, 2 Mar 2006 11:39:31 -0800 schrieb BillyRogers:
Sue told you the easiest way. If that looks too strange for you then you
could also declare it in the Formular as a public member. Example:
<Form1>
Public MailItem as Outlook.MailItem
</Form1>
<ThisOutlookSession>
Private Sub myOlItems_ItemAdd(ByVal item As Object)
Dim fm as Form1
...
Set fm=new Form1
Set fm.MailItem = Item
fm.Show
End Sub
</ThisOutlookSession>
--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --
I just figured it out.it
You have to declare the variable in a standard module as public to pass
between a form and "ThisOutlookSession".
Seems kind of strangr to have to declare it in a module that doesn't even
use it so I can pass it between two other modules.
- References:
- Re: copy email to a task in vba
- From: Sue Mosher [MVP-Outlook]
- Re: copy email to a task in vba
- From: BillyRogers
- Re: copy email to a task in vba
- Prev by Date: Re: programmatically adding contact to distribution list
- Next by Date: Re: Outlook COM Addin and Redemption
- Previous by thread: Re: copy email to a task in vba
- Next by thread: Outlook COM Addin and Redemption
- Index(es):
Relevant Pages
|