Solved

Follow HyperLink Event In Outlook?

Posted on 2009-04-09
10
470 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
 

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
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Large Outlook files lead to various unwanted errors and corruption issues. Furthermore, large outlook files can also make Outlook take longer to start-up, search, navigate, and shut-down. So, In this article, i will discuss a method to make your Out…
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
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…

919 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now