在窗体上循环使用
For Each ctl In frm.Controls在Access中,VBA希望检测控件是否是超链接。我想检测该控件是否是超链接。我看不到与超级链接匹配的ControlType。我假设它是一个具有其他属性的文本框。
谁能给我指明正确的方向吗?
提前谢谢你
李
发布于 2018-07-02 23:49:25
尝试检查HyperLinkAddress属性的长度:
Dim c As Control
For Each c In Controls
If Len(c.HyperlinkAddress) > 0 Then
Debug.Print c.Name & " is a hyperlink (Address: " & c.HyperlinkAddress & ")"
Else
Debug.Print c.Name & " is not a hyperlink"
End If
Nexthttps://stackoverflow.com/questions/51142955
复制相似问题