Solved

Follow HyperLink Event In Outlook?

Posted on 2009-04-09
10
486 Views
Last Modified: 2012-05-06
When an email has hyperlinks, I don't necessarily want Outlook to open them in my Windows default browser.  I want to decide on click which browser to use.  Are there any events I could use to trap this action before the link is followed?

Mike
0
Comment
Question by:shacho
  • 6
  • 4
10 Comments
 
LVL 76

Assisted Solution

by:David Lee
David Lee earned 500 total points
ID: 24113063
Hi, shacho.

There aren't any events in the Outlook object model for trapping a hyperlink click.  Perhaps there something in the operating system, a Windows API event or something like that.  Why wouldn't you want the hyperlink target to open in the default browser?
0
 

Author Comment

by:shacho
ID: 24128195
Internal sites will not work on any other browser than IE.  I worked out a different solution, which is even better as it is system wide.
In case you're interested:

http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_24316238.html

Mike

0
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
ID: 24128670
Mike,

Good solution.  Thanks for sharing it.  I can produce a compiled version of the script that won't generate a window if that'd help.
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:shacho
ID: 24128825
Great idea!  Better still, can you tell me how to do it?  I have access to Visual Studio .Net.


0
 

Author Comment

by:shacho
ID: 24128899
-Reopen-
0
 
LVL 76

Assisted Solution

by:David Lee
David Lee earned 500 total points
ID: 24133224
This works for me.  This is a console application.
Module Module1
 
    Sub Main(ByVal arrArgs As String())
        Dim varArg As String
        If UBound(arrArgs) = 0 Then
            varArg = arrArgs(0)
            'Change company.com on the next line to the unique test to look for in the URL'
            If InStr(LCase(varArg), "company.com", CompareMethod.Text) Then
                System.Diagnostics.Process.Start("C:\Program Files\Internet Explorer\iexplore.exe", varArg)
            Else
                System.Diagnostics.Process.Start("C:\Program Files\Mozilla Firefox\Firefox.exe", varArg)
            End If
        End If
    End Sub
 
End Module

Open in new window

0
 

Author Comment

by:shacho
ID: 24133988
Most excellent.  Is there anyway to prevent the half second flash of the shell window from appearing on execution?
0
 

Author Comment

by:shacho
ID: 24134002
Should I rebuild it as a Windows application?
0
 

Author Comment

by:shacho
ID: 24134014
Just tried it - works great!
0
 
LVL 76

Expert Comment

by:David Lee
ID: 24134052
Cool!
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question