Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 625
  • Last Modified:

Follow HyperLink Event In Outlook?

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
shacho
Asked:
shacho
  • 6
  • 4
3 Solutions
 
David LeeCommented:
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
 
shachoAuthor Commented:
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
 
David LeeCommented:
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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
shachoAuthor Commented:
Great idea!  Better still, can you tell me how to do it?  I have access to Visual Studio .Net.


0
 
shachoAuthor Commented:
-Reopen-
0
 
David LeeCommented:
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
 
shachoAuthor Commented:
Most excellent.  Is there anyway to prevent the half second flash of the shell window from appearing on execution?
0
 
shachoAuthor Commented:
Should I rebuild it as a Windows application?
0
 
shachoAuthor Commented:
Just tried it - works great!
0
 
David LeeCommented:
Cool!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now