Hyperlink in Outlook form v2

B

bawjaws

I am using the following code to place a hyperlink in a form

"Sub Label1_Click()
Set objWeb = CreateObject("InternetExplorer.Application")
objWeb.Navigate Item.GetInspector.ModifiedFormPages _
("P.2").Controls("Label1").Tag
objWeb.Visible = True
End Sub"

(Thanks Sue Mosher)
When I 'Run' the form the hyperlink works, however when I send the form
onto people the link is dead. Any clues anybody

????
 
S

Sue Mosher [MVP-Outlook]

Code works only on published forms. The symptoms suggest that the recipients don't have access to the published form definition. Did you publish the form to the Organizational Forms library with the "Send form definition with item" box on the (Properties) page unchecked?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
B

bawjaws

I published the form to my personal library to test it, would this make
a difference
 
S

Sue Mosher [MVP-Outlook]

Yes, it makes a difference. It means the code will run only for you, not for other recipients.

You also need to check the state of the "Send form definition with item" box, though.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
B

bawjaws

Thanks Sue. I had the 'Send form' unchecked, I just didn't wnat others
tosee the form while I was still working on it
Thanks for help, much appreciated
 
S

Sue Mosher [MVP-Outlook]

Leave that "Send form definition" box unchecked unless you want the code to run for no one, including you.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers


bawjaws said:
Thanks Sue. I had the 'Send form' unchecked, I just didn't wnat others
tosee the form while I was still working on it
Thanks for help, much appreciated

Yes, it makes a difference. It means the code will run only for you, not for other recipients.

You also need to check the state of the "Send form definition with item" box, though.

bawjaws said:
I published the form to my personal library to test it, would this make
a difference


Sue Mosher [MVP-Outlook] wrote:
Code works only on published forms. The symptoms suggest that the recipients don't have access to the published form definition. Did you publish the form to the Organizational Forms library with the "Send form definition with item" box on the (Properties) page unchecked?

I am using the following code to place a hyperlink in a form

"Sub Label1_Click()
Set objWeb = CreateObject("InternetExplorer.Application")
objWeb.Navigate Item.GetInspector.ModifiedFormPages _
("P.2").Controls("Label1").Tag
objWeb.Visible = True
End Sub"

(Thanks Sue Mosher)
When I 'Run' the form the hyperlink works, however when I send the form
onto people the link is dead. Any clues anybody
 

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

Similar Threads


Top