Creating hyperlinks

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
 
S

Sue Mosher [MVP]

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.
 
A

Amy Brooks

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
 
A

Amy Brooks

Just tried using a URL instead of the windows folder path, and that shows
perfectly. If that helps at all.
 
S

Sue Mosher [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top