|
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Application.Intersect(Target, Range("b5:b10")) Is Nothing And Target.Rows.Count = 1 And Target.Columns.Count = 1 Then
s = Target.Value
r = Target.Row ''''''''''''''''''''''
c = Target.Column '''''''''''''''''''
h = [h3]
With Sheet3
If .Cells(r, c).Offset(0, 5 + h) <> "" Then '''''''''''''''''
.Cells(r, c).Offset(0, 5 + h) = "" '''''''''''''''''''''''
Else
.Cells(r, c).Offset(0, 5 + h) = s ''''''''''''''''''''''''
End If
End With
Range("C5").Select
End If
End Sub |
评分
-
3
查看全部评分
-
|