URL's in Custom Forms

  • Thread starter Thread starter Wanda
  • Start date Start date
W

Wanda

I thought I had posted this message, but can't find it
here, so reposting. I can have a label click to an
intra/internet site, via caption and below coding .... but
is there a way to link a URL to a label of a different
caption? (Tried to use the WEB page control under the
Item.Contact, but was not successful.)

******************
Sub lblForm_Click()
Set objWeb = CreateObject("InternetExplorer.Application")
objWeb.Navigate Item.GetInspector.ModifiedFormPages _
("Equipment, Supplies").Controls("lblForm").Caption
objWeb.Visible = True
End Sub
******************

Thanks. Wanda
 
You can make it link to whatever you want. Just set the objWeb.Navigate argument to the appropriate text, getting the value from a different control by substituting that control's name, as needed.

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.slipstick.com/books/jumpstart.htm
 
Back
Top