Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I write code to interact with a hyperlink?

Status
Not open for further replies.

OhioSteve

MIS
Mar 12, 2002
1,352
US
I have a hyperlink on my form called myLink. At times I will need to click that hyperlink using VBA code. I know that sounds crazy, but trust me I need to do this. So I need to write something like:

forms!form1!myLink.click

But I suspect that that is not exactly right. Does anyone know the exact syntax?
 
Hi.

Have you tried FollowHyperlink?

ChaZ

There Are 10 Types Of People In The world:
Those That Understand BINARY And Those That Don’t.
 
Okay, I tried this:

Forms![startup1]![myLink].followhyperlink

I got the error "object does not support this property or method".
 
Why not simply call the Follow method of your form's Hyperlink object ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top