Creating hyperlinks

  • Thread starter Thread starter Amy Brooks
  • Start date Start date
A

Amy Brooks

Hi,

Is it possible to (on a contacts form) create a hyperlink that links to a
windows folder, either by:
a) using a command button
b) entering text into the notes box

Thanks,
Amy
 
Yes, you can use the file:// hyperlink syntax, e.g.:

file://c:\data\my%20folder

Replace any spaces in folder names with the %20 character sequence.
 
Hi again Sue :)

I used the code on your site:
____________________________________________________________________
Sub CallReports_Click()
Set objWeb = CreateObject("InternetExplorer.Application")
objWeb.Navigate Item.GetInspector.ModifiedFormPages _
("General").Controls("CallReports").ControlTipText
objWeb.Visible = True
End Sub
____________________________________________________________________

The command box I am using is called CallReports (thats the control name).
My folder path is stored in the ControlTipText of Advanced Properties,
because I wanted a different caption to show.

When I ran the form and clicked the button, it brought up Internet Explorer,
but wouldn't show the folder. Am I doing something wrong? Should I change the
InternetExplorer.Application to something different?

Thanks,
Amy
 
Just tried using a URL instead of the windows folder path, and that shows
perfectly. If that helps at all.
 
What is that folder path you have stored in the ControlTipText? Did you
include the file:// prefix? Does that path work if you enter it in Start |
Run or the IE address window?

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 
Back
Top