URL's in Custom Forms

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
 
S

Sue Mosher [MVP]

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
 

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