- 帖子
- 2843
- 主題
- 10
- 精華
- 0
- 積分
- 2899
- 點名
- 0
- 作業系統
- 〔略〕
- 軟體版本
- 〔略〕
- 閱讀權限
- 100
- 性別
- 男
- 來自
- 〔略〕
- 註冊時間
- 2013-5-13
- 最後登錄
- 2025-6-9
|
回復 8# s7659109
Private Sub Worksheet_Change(ByVal Target As Range)
With Target
If .Count > 1 Or .Row = 1 Then Exit Sub
If .Column = 5 Then
If .Value = "" Then .Cells(1, -3).Resize(1, 6).ClearContents: Exit Sub
.Cells(1, -3) = Format(Date, "emmdd")
.Cells(1, -2) = 123
.Cells(1, -1) = 345
.Cells(1, 2).Select
ElseIf .Column = 6 Then
If .Value <> "" Then .Cells(2, 0).Select
End If
End With
End Sub |
|