Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Set DBRng = Target
If DBRng.Column <> 3 Then Exit Sub
Cancel = True
If DBRng.Row = 1 Then [C:C].ClearComments: Exit Sub '雙按C1,刪除全部註解
If DBRng.Value = "" Then Exit Sub
Call 插入註解圖片
End Sub
原檔案內程式
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Call CopyData
End Sub
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Set DBRng = Target
If DBRng.Column = 3 Then
Cancel = True
If DBRng.Row = 1 Then [C:C].ClearComments: Exit Sub '雙按C1,刪除全部註解
If DBRng.Value = "" Then Exit Sub
Call 插入註解圖片
ElseIf DBRng.Address = "$A$1" Then '對A1雙按
Cancel = True
Call CopyData
End If
End Sub