2
單元格A1:Worksheet_FollowHyperlink和MSGBOX在Excel工作2010
=HYPERLINK("#Sheet2!a2","link")
片狀>查看代碼
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
MsgBox ("hello")
End Sub
當我點擊左側A1的MessageBox不開;相反,#Sheet2!a2打開。要在與超鏈接不火的消息框中的電池問題進一步複雜化,
片狀>查看代碼
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
MsgBox ("hello")
End Sub
點擊鼠標右鍵,但無論如何,谷歌火災。
片狀>查看代碼
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
MsgBox ("hello")
End Sub
現在雙擊A1不會生成一個消息框。
爲什麼?