View Single Post
  #2  
Old August 4th 06, 08:06 AM posted to microsoft.public.outlook.program_addins
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Reading Pane Context Menu VBA Help

Am 3 Aug 2006 16:42:22 -0700 schrieb Paul:

In Outlook 2007 you donīt have full control over the contex menu. Hereīs a
sample how you might work around it:
http://www.outlookcode.com/threads.a...essageid=18141

OL does not have a FollowHyperlink method. You could use the Shell instead:

Private Declare Function ShellExecute Lib "shell32.dll" Alias _
"ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, _
ByVal lpFile As String, ByVal lpParameters As String, _
ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Public Sub ShowWebSite(Site As String)
ShellExecute 0, "open", Site, vbNullString, vbNullString, 1
End Sub

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


I'm an experienced VBA Excel programmer, but am new to Outlook. I need
some help adding a custom menu item to one of Outlook's pop up context
menus.

I hope I can word the appropriate question here.

I have Outlook 2003 installed locally. It uses our corporate network
mail servers. Our administrators have set up the Outlook reading pane
to display a "windows messenger" icon next to the sender's name and
email address at the top of the pane. If you click the icon or right
click the senders name, a pop up menu appears showing several of the
senders properties from our corporate ldap source (e.g., name, business
phone, location, etc.). In addition Outlook provides other menu items
in the pop up like: additional actions, create rule, lookup outlook
contact, and outlook properties.

I would like to insert a custom menu item in this pop up. It would use
the senders name to essentially follow a hyperlink to a web page.

Could you outline how I might programmatically insert this custom menu
item (couldn't find the name/id for the pop up). Does Outlook have a
FollowHyperlink method which would bring up the web page?

Thanks Very Much,
Paul Katz

Ads