Solved

Follow HyperLink Event In Outlook?

Posted on 2009-04-09
10
468 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Granting full access permission allows users to access mailboxes present in their database. By giving full access permission one can open and read the content of any mailbox but cannot send emails from that mailbox.
Get an idea of what you should include in an email disclaimer with these Top 5 email disclaimer tips.
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…

746 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

9 Experts available now in Live!

Get 1:1 Help Now