Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim Dt As String
Dt = Date
With Target
If .Column >= 3 And .Column < 9 Then
Cancel = True
If .Comment Is Nothing Then .AddComment
.Comment.Shape.TextFrame.AutoSize = True
.Comment.Text Text:=Dt
End If
If .Column = 3 And Cells(Target.Row, 2) <> "" Then
Cells(Target.Row, 2).Select
Selection.Cut Destination:=Cells(Target.Row, 1)
Cells(.Row, 3).Interior.ColorIndex = 3
Cells(.Row, 9) = Date
End If
If .Column = 4 And Cells(Target.Row, 2) <> "" Then
Cells(Target.Row, 2).Select
Selection.Cut Destination:=Cells(Target.Row, 1)
Cells(.Row, 4).Interior.ColorIndex = 45
Cells(.Row, 9) = Date
End If
If .Column = 5 And Cells(Target.Row, 2) <> "" Then
Cells(Target.Row, 2).Select
Selection.Cut Destination:=Cells(Target.Row, 1)
Cells(.Row, 5).Interior.ColorIndex = 36
Cells(.Row, 9) = Date
End If
If .Column = 6 And Cells(Target.Row, 1) <> "" Then
Cells(Target.Row, 1).Select
Selection.Cut Destination:=Cells(Target.Row, 2)
Cells(.Row, 6).Interior.ColorIndex = 27
Cells(.Row, 9) = Date
End If
If .Column = 7 And Cells(Target.Row, 1) <> "" Then
Cells(Target.Row, 1).Select
Selection.Cut Destination:=Cells(Target.Row, 2)
Cells(.Row, 7).Interior.ColorIndex = 35
Cells(.Row, 9) = Date
End If
If .Column = 8 And Cells(Target.Row, 1) <> "" Then
Cells(Target.Row, 1).Select
Selection.Cut Destination:=Cells(Target.Row, 2)
Cells(.Row, 8).Interior.ColorIndex = 4
Cells(.Row, 9) = Date
End If
End With
End Sub