Solved

Follow HyperLink Event In Outlook?

Posted on 2009-04-09
10
492 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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 …
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…

726 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